Cancel button is now close button
authoramwaterhouse <Andrew Waterhouse>
Mon, 30 Jan 2006 17:14:47 +0000 (17:14 +0000)
committeramwaterhouse <Andrew Waterhouse>
Mon, 30 Jan 2006 17:14:47 +0000 (17:14 +0000)
src/jalview/gui/SequenceFetcher.java

index 99ba120..0884d44 100755 (executable)
@@ -87,12 +87,12 @@ public class SequenceFetcher
         ok_actionPerformed(e);\r
       }\r
     });\r
-    cancel.setText("Cancel");\r
-    cancel.addActionListener(new ActionListener()\r
+    close.setText("Close");\r
+    close.addActionListener(new ActionListener()\r
     {\r
       public void actionPerformed(ActionEvent e)\r
       {\r
-        cancel_actionPerformed(e);\r
+        close_actionPerformed(e);\r
       }\r
     });\r
     textfield.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11));\r
@@ -104,7 +104,7 @@ public class SequenceFetcher
       }\r
     });\r
     jPanel1.add(ok);\r
-    jPanel1.add(cancel);\r
+    jPanel1.add(close);\r
     this.add(jLabel1, new GridBagConstraints(0, 0, 2, 1, 0.0, 0.0\r
                                              , GridBagConstraints.WEST,\r
                                              GridBagConstraints.NONE,\r
@@ -126,11 +126,11 @@ public class SequenceFetcher
   JComboBox database = new JComboBox();\r
   JLabel jLabel1 = new JLabel();\r
   JButton ok = new JButton();\r
-  JButton cancel = new JButton();\r
+  JButton close = new JButton();\r
   JPanel jPanel1 = new JPanel();\r
   JTextField textfield = new JTextField();\r
   GridBagLayout gridBagLayout1 = new GridBagLayout();\r
-  public void cancel_actionPerformed(ActionEvent e)\r
+  public void close_actionPerformed(ActionEvent e)\r
   {\r
     try\r
     {\r
@@ -146,7 +146,7 @@ public class SequenceFetcher
     database.setEnabled(false);\r
     textfield.setEnabled(false);\r
     ok.setEnabled(false);\r
-    cancel.setEnabled(false);\r
+    close.setEnabled(false);\r
 \r
     Thread worker = new Thread(this);\r
     worker.start();\r
@@ -157,7 +157,7 @@ public class SequenceFetcher
     database.setEnabled(true);\r
     textfield.setEnabled(true);\r
     ok.setEnabled(true);\r
-    cancel.setEnabled(true);\r
+    close.setEnabled(true);\r
     frame.setTitle(getFrameTitle());\r
   }\r
 \r