JAL-3253 jalview.bin.Instance streamlining
[jalview.git] / src / jalview / gui / SplashScreen.java
index 96f5c8c..98b24d1 100755 (executable)
@@ -20,7 +20,6 @@
  */
 package jalview.gui;
 
-import jalview.bin.Instance;
 import jalview.util.Platform;
 
 import java.awt.BorderLayout;
@@ -161,7 +160,7 @@ public class SplashScreen extends JPanel
             System.err.println("Error when loading images!");
           }
         } while (!mt.checkAll());
-        Instance.getDesktop().setIconImage(logo);
+        Desktop.getInstance().setIconImage(logo);
       }
     } catch (Exception ex)
     {
@@ -204,7 +203,7 @@ public class SplashScreen extends JPanel
   @SuppressWarnings("unused")
   protected boolean refreshText()
   {
-    String newtext = Instance.getDesktop().getAboutMessage(true).toString();
+    String newtext = Desktop.getInstance().getAboutMessage(true).toString();
     // System.err.println("Text found: \n"+newtext+"\nEnd of newtext.");
     if (oldtext != newtext.length())
     {
@@ -237,8 +236,8 @@ public class SplashScreen extends JPanel
       authlist.setSize(new Dimension(750, 375));
       add(authlist, BorderLayout.CENTER);
       revalidate();
-      iframe.setBounds((Instance.getDesktop().getWidth() - 750) / 2,
-              (Instance.getDesktop().getHeight() - 375) / 2, 750,
+      iframe.setBounds((Desktop.getInstance().getWidth() - 750) / 2,
+              (Desktop.getInstance().getHeight() - 375) / 2, 750,
               authlist.getHeight() + iconimg.getHeight());
       iframe.validate();
       iframe.setVisible(true);
@@ -288,7 +287,7 @@ public class SplashScreen extends JPanel
     }
 
     closeSplash();
-    Instance.getDesktop().startDialogQueue();
+    Desktop.getInstance().startDialogQueue();
   }
 
   /**