[sc1.0-cvs] CVS update: /sip-communicator-1-0-draft/src/net/java/sip/communicator/impl/gui/

yanas at dev.java.net yanas at dev.java.net
Fri Feb 17 15:13:16 CET 2006


User: yanas   
Date: 2006/02/17 06:13:16

Log:
 show login window in different thread

File Changes:

Directory: /sip-communicator-1-0-draft/src/net/java/sip/communicator/impl/gui/
==============================================================================

File [changed]: Activator.java
Url: https://sip-communicator-1-0-draft.dev.java.net/source/browse/sip-communicator-1-0-draft/src/net/java/sip/communicator/impl/gui/Activator.java?r1=1.7&r2=1.8
Delta lines:  +15 -3
--------------------
--- Activator.java	16 Feb 2006 13:55:27 -0000	1.7
+++ Activator.java	17 Feb 2006 14:13:14 -0000	1.8
@@ -2,6 +2,8 @@
 
 import java.util.Hashtable;
 
+import javax.swing.SwingUtilities;
+
 import net.java.sip.communicator.impl.gui.main.CommunicatorMain;
 import net.java.sip.communicator.impl.gui.main.login.LoginManager;
 import net.java.sip.communicator.impl.gui.main.login.LoginWindow;
@@ -40,6 +42,8 @@
 
         this.loginManager = new LoginManager(bundleContext);
 
+        this.loginManager.setMainFrame(communicatorMain.getMainFrame());
+        
         try
         {
             logger.logEntry();
@@ -65,7 +69,7 @@
 
             communicatorMain.showCommunicator();
 
-            loginManager.showLoginWindow(communicatorMain.getMainFrame());
+            SwingUtilities.invokeLater(new RunLogin());
 
         }
         finally
@@ -79,4 +83,12 @@
         logger.info("UI Service ...[STOPED]");
     }
 
+    
+    private class RunLogin implements Runnable {
+
+        public void run() {
+            
+            loginManager.showLoginWindow(communicatorMain.getMainFrame());            
+        }
+    }
 }




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





More information about the commits mailing list