enabling Splash screen in JavaScript.
[jalview.git] / src / jalview / gui / Desktop.java
index 9e0c89b..ae3b652 100644 (file)
@@ -473,17 +473,6 @@ public class Desktop extends GDesktop
 
         checkURLLinks();
 
-        // Spawn a thread that shows the splashscreen
-
-        SwingUtilities.invokeLater(new Runnable()
-        {
-          @Override
-          public void run()
-          {
-            new SplashScreen();
-          }
-        });
-
         // Thread off a new instance of the file chooser - this reduces the time
         // it
         // takes to open it later on.
@@ -516,6 +505,17 @@ public class Desktop extends GDesktop
 
       }
 
+      // Spawn a thread that shows the splashscreen
+
+      SwingUtilities.invokeLater(new Runnable()
+      {
+        @Override
+        public void run()
+        {
+          new SplashScreen();
+        }
+      });
+
       this.setDropTarget(new java.awt.dnd.DropTarget(desktopPane, this));
 
       this.addWindowListener(new WindowAdapter()