From: jprocter Date: Thu, 2 Sep 2010 12:31:51 +0000 (+0000) Subject: update gui in gui thread - not structure loading thread X-Git-Tag: Release_2_6~75 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=a9da9b67bcc52a719e12ae98dbaf51d75d6869d4;p=jalview.git update gui in gui thread - not structure loading thread --- diff --git a/src/jalview/gui/AppJmolBinding.java b/src/jalview/gui/AppJmolBinding.java index d2efb93..5727386 100644 --- a/src/jalview/gui/AppJmolBinding.java +++ b/src/jalview/gui/AppJmolBinding.java @@ -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)