[sip-comm-cvs] CVS update: /sip-communicator/src/net/java/sip/communicator/impl/gui/main/chat/

yanas at dev.java.net yanas at dev.java.net
Tue Apr 17 13:30:47 CEST 2007


User: yanas   
Date: 2007-04-17 11:30:47+0000
Modified:
   sip-communicator/src/net/java/sip/communicator/impl/gui/main/chat/ChatWindowManager.java
   sip-communicator/src/net/java/sip/communicator/impl/gui/main/chat/ChatWindow.java

Log:
 fix chat window refresh

File Changes:

Directory: /sip-communicator/src/net/java/sip/communicator/impl/gui/main/chat/
==============================================================================

File [changed]: ChatWindowManager.java
Url: https://sip-communicator.dev.java.net/source/browse/sip-communicator/src/net/java/sip/communicator/impl/gui/main/chat/ChatWindowManager.java?r1=1.3&r2=1.4
Delta lines:  +3 -3
-------------------
--- ChatWindowManager.java	2007-04-13 14:05:52+0000	1.3
+++ ChatWindowManager.java	2007-04-17 11:30:45+0000	1.4
@@ -210,7 +210,7 @@
                 if (answer == JOptionPane.OK_OPTION)
                 {
                     chatWindow.removeAllChats();
-                    chatWindow.setVisible(false);
+                    chatWindow.dispose();
 
                     synchronized (chats)
                     {
@@ -231,7 +231,7 @@
                 if (answer == JOptionPane.OK_OPTION)
                 {
                     chatWindow.removeAllChats();
-                    chatWindow.setVisible(false);
+                    chatWindow.dispose();
 
                     synchronized (chats)
                     {
@@ -242,7 +242,7 @@
             else
             {
                 chatWindow.removeAllChats();
-                chatWindow.setVisible(false);
+                chatWindow.dispose();
 
                 synchronized (chats)
                 {

File [changed]: ChatWindow.java
Url: https://sip-communicator.dev.java.net/source/browse/sip-communicator/src/net/java/sip/communicator/impl/gui/main/chat/ChatWindow.java?r1=1.5&r2=1.6
Delta lines:  +3 -5
-------------------
--- ChatWindow.java	2007-04-16 17:51:50+0000	1.5
+++ ChatWindow.java	2007-04-17 11:30:45+0000	1.6
@@ -259,10 +259,8 @@
         if(getChatTabCount() == 0)
         {
             this.getContentPane().remove(chatPanel);
-            this.getContentPane().validate();
-            this.getContentPane().repaint();
             
-            this.setVisible(false);
+            this.dispose();
             
             return;
         }




---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe at sip-communicator.dev.java.net
For additional commands, e-mail: cvs-help at sip-communicator.dev.java.net





More information about the commits mailing list