From: amwaterhouse Date: Fri, 27 Apr 2007 14:53:33 +0000 (+0000) Subject: Move repaint in thread X-Git-Tag: Release_2_3~122 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=2ff861c30f5ff9c7b9fe014b87135f6c7591e24d;p=jalview.git Move repaint in thread --- diff --git a/src/jalview/gui/SplashScreen.java b/src/jalview/gui/SplashScreen.java index 9f4429a..a033ec7 100755 --- a/src/jalview/gui/SplashScreen.java +++ b/src/jalview/gui/SplashScreen.java @@ -74,11 +74,6 @@ public class SplashScreen while (visible) { - if ( ( (System.currentTimeMillis() / 1000) - startTime) > 5) - { - visible = false; - } - try { Thread.sleep(1000); @@ -87,6 +82,11 @@ public class SplashScreen catch (Exception ex) { } + + if ( ( (System.currentTimeMillis() / 1000) - startTime) > 5) + { + visible = false; + } } closeSplash(); @@ -102,9 +102,7 @@ public class SplashScreen iframe.setClosed(true); } catch (Exception ex) - { - ex.printStackTrace(); - } + { } } /**