{
public void run()
{
+ String orgtimeout = System.getProperty("sun.net.client.defaultConnectTimeout");
String jnlpVersion = null;
try
{
+ System.setProperty("sun.net.client.defaultConnectTimeout", "5000");
java.net.URL url = new java.net.URL(
"http://www.jalview.org/webstart/jalview.jnlp");
BufferedReader in = new BufferedReader(new InputStreamReader(url.
System.out.println(ex);
jnlpVersion = getProperty("VERSION");
}
+ System.setProperty("sun.net.client.defaultConnectTimeout", orgtimeout);
setProperty("LATEST_VERSION", jnlpVersion);
}
*/
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
* 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");
{
}
- addMouseListener(new MouseAdapter()
- {
- public void mousePressed(MouseEvent evt)
- {
- try
- {
- closeSplash();
- }
- catch (Exception ex)
- {
- }
- }
- });
iframe = new JInternalFrame();
iframe.setFrameIcon(null);