Check for null StringBuffer in getPDB
[jalview.git] / src / jalview / gui / EPSOptions.java
index ee105d8..a9a60f2 100755 (executable)
@@ -1,3 +1,21 @@
+/*\r
+ * Jalview - A Sequence Alignment Editor and Viewer\r
+ * Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle\r
+ *\r
+ * This program is free software; you can redistribute it and/or\r
+ * modify it under the terms of the GNU General Public License\r
+ * as published by the Free Software Foundation; either version 2\r
+ * of the License, or (at your option) any later version.\r
+ *\r
+ * This program is distributed in the hope that it will be useful,\r
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+ * GNU General Public License for more details.\r
+ *\r
+ * You should have received a copy of the GNU General Public License\r
+ * along with this program; if not, write to the Free Software\r
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA\r
+ */\r
 package jalview.gui;\r
 \r
 import javax.swing.*;\r
@@ -9,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
@@ -32,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
@@ -63,7 +81,7 @@ public class EPSOptions
       }\r
     });\r
     jLabel1.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11));\r
-    jLabel1.setText("Select EPS Character rendering style");\r
+    jLabel1.setText("Select EPS character rendering style");\r
     this.setLayout(borderLayout1);\r
     jPanel3.setBorder(BorderFactory.createEtchedBorder());\r
     jPanel2.add(lineart);\r
@@ -104,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