check for crossreferences every time the menus are updated
[jalview.git] / src / jalview / gui / SplashScreen.java
index 8e0c55f..30cfa63 100755 (executable)
@@ -49,6 +49,21 @@ public class SplashScreen
    * ping the jalview version page then create and display the jalview splashscreen window.
    */
   void initSplashScreenWindow() {
+    addMouseListener(new MouseAdapter()
+    {
+      public void mousePressed(MouseEvent evt)
+      {
+        try
+        {
+          visible=false;
+          closeSplash();
+        }
+        catch (Exception ex)
+        {
+        }
+      }
+    });
+
     try
     {
       java.net.URL url = getClass().getResource("/images/logo.gif");
@@ -67,19 +82,6 @@ public class SplashScreen
     {
     }
 
-    addMouseListener(new MouseAdapter()
-    {
-      public void mousePressed(MouseEvent evt)
-      {
-        try
-        {
-          closeSplash();
-        }
-        catch (Exception ex)
-        {
-        }
-      }
-    });
 
     iframe = new JInternalFrame();
     iframe.setFrameIcon(null);