Move repaint in thread
authoramwaterhouse <Andrew Waterhouse>
Fri, 27 Apr 2007 14:53:33 +0000 (14:53 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 27 Apr 2007 14:53:33 +0000 (14:53 +0000)
src/jalview/gui/SplashScreen.java

index 9f4429a..a033ec7 100755 (executable)
@@ -74,11 +74,6 @@ public class SplashScreen
 \r
     while (visible)\r
     {\r
-      if ( ( (System.currentTimeMillis() / 1000) - startTime) > 5)\r
-      {\r
-        visible = false;\r
-      }\r
-\r
       try\r
       {\r
         Thread.sleep(1000);\r
@@ -87,6 +82,11 @@ public class SplashScreen
       catch (Exception ex)\r
       {\r
       }\r
+\r
+      if ( ( (System.currentTimeMillis() / 1000) - startTime) > 5)\r
+      {\r
+        visible = false;\r
+      }\r
     }\r
 \r
     closeSplash();\r
@@ -102,9 +102,7 @@ public class SplashScreen
       iframe.setClosed(true);\r
     }\r
     catch (Exception ex)\r
-    {\r
-      ex.printStackTrace();\r
-    }\r
+    {  }\r
   }\r
 \r
   /**\r