streamlined app and applet jmol console + event handling via component listener
[jalview.git] / src / jalview / gui / AppJmol.java
index 0cc04f7..1b0a5cb 100644 (file)
@@ -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);
@@ -786,7 +786,7 @@ public class AppJmol extends GStructureViewer implements Runnable,
     {
     }
   }
-  public void showConsole(boolean showConsole)
+public void showConsole(boolean showConsole)
   {
 
     if (showConsole)
@@ -818,7 +818,6 @@ public class AppJmol extends GStructureViewer implements Runnable,
 
     validate();
   }
-
   class RenderPanel extends JPanel
   {
     final Dimension currentSize = new Dimension();