Move repaint in thread
[jalview.git] / 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