[Zerofile-svn] SF.net SVN: zerofile: [83] trunk/src
Status: Pre-Alpha
Brought to you by:
karl-bengtsson
|
From: <kar...@us...> - 2007-12-13 14:17:57
|
Revision: 83
http://zerofile.svn.sourceforge.net/zerofile/?rev=83&view=rev
Author: karl-bengtsson
Date: 2007-12-13 06:17:44 -0800 (Thu, 13 Dec 2007)
Log Message:
-----------
fancy chatwindow autoscroll
Modified Paths:
--------------
trunk/src/XMPPLinkLocalChatSession.java
trunk/src/ZeroFileChatWindow.java
Modified: trunk/src/XMPPLinkLocalChatSession.java
===================================================================
--- trunk/src/XMPPLinkLocalChatSession.java 2007-12-13 14:10:21 UTC (rev 82)
+++ trunk/src/XMPPLinkLocalChatSession.java 2007-12-13 14:17:44 UTC (rev 83)
@@ -152,7 +152,7 @@
}
else
{
- if (JOptionPane.showConfirmDialog(null, "Ta emot?", _chatPartner.toString() + "is sending you the file \""+fileName+"\". Do you wish to accept this file transfer?", JOptionPane.YES_NO_OPTION) == 0)
+ if (JOptionPane.showConfirmDialog(null, _chatPartner.toString() + "is sending you the file \""+fileName+"\". Do you wish to accept this file transfer?","Ta emot?", JOptionPane.YES_NO_OPTION) == 0)
{
ZeroFile.downloadFileFromHTTP(XMPPDOMParser.getUrlFromFileTransferStanza(stanza));
_chatWindow.printText("Downloaded file \""+ fileName + "\" from chat partner");
Modified: trunk/src/ZeroFileChatWindow.java
===================================================================
--- trunk/src/ZeroFileChatWindow.java 2007-12-13 14:10:21 UTC (rev 82)
+++ trunk/src/ZeroFileChatWindow.java 2007-12-13 14:17:44 UTC (rev 83)
@@ -32,6 +32,7 @@
public void printText(String s)
{
_chatTextArea.append(s+"\n");
+ _chatTextArea.setCaretPosition(_chatTextArea.getDocument().getLength());
}
public void sendMessage(String str)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|