null pointer in wrapped mode, click near sequence
[jalview.git] / src / jalview / gui / EPSOptions.java
index 78c1f02..a9a60f2 100755 (executable)
@@ -27,7 +27,7 @@ public class EPSOptions
     extends JPanel\r
 {\r
   JDialog dialog;\r
-  boolean cancelled = false;\r
+  public boolean cancelled = false;\r
   String value;\r
 \r
   public EPSOptions()\r
@@ -50,7 +50,7 @@ public class EPSOptions
        null, new Object[]{this});\r
 \r
     dialog = pane.createDialog(Desktop.desktop, "EPS Rendering options");\r
-    dialog.show();\r
+    dialog.setVisible(true);\r
 \r
   }\r
 \r
@@ -122,13 +122,13 @@ public class EPSOptions
       jalview.bin.Cache.setProperty("EPS_RENDERING", value);\r
     }\r
 \r
-    dialog.hide();\r
+    dialog.setVisible(false);\r
   }\r
 \r
   public void cancel_actionPerformed(ActionEvent e)\r
   {\r
     cancelled = true;\r
-    dialog.hide();\r
+    dialog.setVisible(false);\r
   }\r
 \r
   public String getValue()\r