*/
public Desktop()
{
+ /**
+ * A note to implementors. It is ESSENTIAL that any
+ * activities that might block are spawned off as threads rather
+ * than waited for during this constructor.
+ */
instance = this;
doVamsasClientCheck();
doGroovyCheck();
this.setDropTarget(new java.awt.dnd.DropTarget(desktop, this));
+ // Spawn a thread that shows the splashscreen
+ new SplashScreen();
- /////////Add a splashscreen on startup
- /////////Add a splashscreen on startup
- new SplashScreen();
discoverer = new jalview.ws.Discoverer(); // Only gets started if gui is displayed.
public void checkForQuestionnaire(String url)
{
UserQuestionnaireCheck jvq = new UserQuestionnaireCheck(url);
- javax.swing.SwingUtilities.invokeLater(jvq);
+ //javax.swing.SwingUtilities.invokeLater(jvq);
+ new Thread(jvq).start();
}
/**
* Proxy class for JDesktopPane which optionally
* the desktop area with a red bar if free memory runs low.
* @author AMW
*/
- class MyDesktopPane extends JDesktopPane implements Runnable
+ public class MyDesktopPane extends JDesktopPane implements Runnable
{
boolean showMemoryUsage = false;
worker.start();
}
}
-
+ public boolean isShowMemoryUsage()
+ {
+ return showMemoryUsage;
+ }
public void run()
{
df = java.text.NumberFormat.getNumberInstance();