JAL-3328 JAL-3300 changed invokeLaters to invokeAndWaits for more visible progress
[jalview.git] / getdown / src / getdown / launcher / src / main / java / com / threerings / getdown / launcher / Getdown.java
index fc3cfbd..e1ef2eb 100644 (file)
@@ -771,6 +771,10 @@ public abstract class Getdown extends Thread
         EventQueue.invokeLater(new Runnable() {
             public void run () {
 */
+        try {
+        EventQueue.invokeAndWait(new Runnable() {
+            public void run () {
+               
                 if (_container == null || reinit) {
                     if (_container == null) {
                         _container = createContainer();
@@ -831,14 +835,16 @@ public abstract class Getdown extends Thread
                     _patchNotes.setFont(StatusPanel.FONT);
                     _layers.add(_patchNotes);
                     _status = new StatusPanel(_msgs);
+                                       //setStatusAsync("test", stepToGlobalPercent(1), -1L, false);
                     _layers.add(_status, Integer.valueOf(10));
                     initInterface();
                 }
                 showContainer();
-/*
             }
         });
-*/
+        } catch (Exception e) {
+               e.printStackTrace();
+        }
     }
 
     /**
@@ -956,9 +962,15 @@ public abstract class Getdown extends Thread
             createInterfaceAsync(false);
         }
 
+/*
         EventQueue.invokeLater(new Runnable() {
             public void run () {
-                if (_status == null) {
+*/
+        try {
+        EventQueue.invokeAndWait(new Runnable() {
+            public void run () {
+
+               if (_status == null) {
                     if (message != null) {
                         log.info("Dropping status '" + message + "'.");
                     }
@@ -974,6 +986,9 @@ public abstract class Getdown extends Thread
                 }
             }
         });
+        } catch (Exception e) {
+               e.printStackTrace();
+        }
     }
 
     protected void reportTrackingEvent (String event, int progress)