Jalview 2.6 source licence
[jalview.git] / src / jalview / gui / AppJmol.java
index 0cc04f7..868f306 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.5)
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.6)
  * Copyright (C) 2010 J Procter, AM Waterhouse, G Barton, M Clamp, S Searle
  * 
  * This file is part of Jalview.
@@ -339,8 +339,8 @@ public class AppJmol extends GStructureViewer implements Runnable,
       bl.setHgap(0);
       bl.setVgap(0);
       scriptWindow = new JPanel(bl);
+      scriptWindow.setVisible(false);
     };
-    
     jmb.allocateViewer(renderPanel, true, "", null, null, "", scriptWindow, null);
     jmb.newJmolPopup(true, "Jmol", true);
     jmb.evalStateCommand(command);
@@ -414,6 +414,7 @@ public class AppJmol extends GStructureViewer implements Runnable,
   void closeViewer()
   {
     jmb.closeViewer();
+    
     // TODO: check for memory leaks where instance isn't finalised because jmb
     // holds a reference to the window
     jmb = null;
@@ -786,7 +787,7 @@ public class AppJmol extends GStructureViewer implements Runnable,
     {
     }
   }
-  public void showConsole(boolean showConsole)
+public void showConsole(boolean showConsole)
   {
 
     if (showConsole)
@@ -818,7 +819,6 @@ public class AppJmol extends GStructureViewer implements Runnable,
 
     validate();
   }
-
   class RenderPanel extends JPanel
   {
     final Dimension currentSize = new Dimension();