refactor to abstract jmol/jalview binding and applet and application specific sequenc...
[jalview.git] / src / jalview / gui / ScriptWindow.java
index de31fcf..652830d 100644 (file)
@@ -29,6 +29,7 @@ import org.jmol.i18n.GT;
 import org.jmol.util.Logger;
 import org.jmol.util.CommandHistory;
 
+// TODO: this class is copied in from jmol 11.0.2 - upgrade to 12.0.2 ?
 public final class ScriptWindow extends JPanel implements ActionListener,
         EnterListener
 {
@@ -53,7 +54,7 @@ public final class ScriptWindow extends JPanel implements ActionListener,
 
   public ScriptWindow(AppJmol appJmol)
   {
-    this.viewer = appJmol.viewer;
+    this.viewer = appJmol.jmb.viewer;
     this.appJmol = appJmol;
 
     setLayout(new BorderLayout());