From 2ff861c30f5ff9c7b9fe014b87135f6c7591e24d Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Fri, 27 Apr 2007 14:53:33 +0000 Subject: [PATCH] Move repaint in thread --- src/jalview/gui/SplashScreen.java | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) 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(); - } + { } } /** -- 1.7.10.2