update gui in gui thread - not structure loading thread
authorjprocter <Jim Procter>
Thu, 2 Sep 2010 12:31:51 +0000 (12:31 +0000)
committerjprocter <Jim Procter>
Thu, 2 Sep 2010 12:31:51 +0000 (12:31 +0000)
src/jalview/gui/AppJmolBinding.java

index d2efb93..5727386 100644 (file)
@@ -86,7 +86,11 @@ public class AppJmolBinding extends jalview.ext.jmol.JalviewJmolBinding
   public void refreshGUI()
   {
     // appJmolWindow.repaint();
-    appJmolWindow.updateTitleAndMenus();
+    javax.swing.SwingUtilities.invokeLater(new Runnable() {
+      public void run() {
+        appJmolWindow.updateTitleAndMenus();
+        appJmolWindow.revalidate();
+      }});
   }
 
   public void updateColours(Object source)