From: amwaterhouse Date: Mon, 30 Jan 2006 17:14:47 +0000 (+0000) Subject: Cancel button is now close button X-Git-Tag: Root_VamJalview_2_07b+~192 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=b7f7c7acc0afabdf3a6162c237094b860968219b;p=jalview.git Cancel button is now close button --- diff --git a/src/jalview/gui/SequenceFetcher.java b/src/jalview/gui/SequenceFetcher.java index 99ba120..0884d44 100755 --- a/src/jalview/gui/SequenceFetcher.java +++ b/src/jalview/gui/SequenceFetcher.java @@ -87,12 +87,12 @@ public class SequenceFetcher ok_actionPerformed(e); } }); - cancel.setText("Cancel"); - cancel.addActionListener(new ActionListener() + close.setText("Close"); + close.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { - cancel_actionPerformed(e); + close_actionPerformed(e); } }); textfield.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11)); @@ -104,7 +104,7 @@ public class SequenceFetcher } }); jPanel1.add(ok); - jPanel1.add(cancel); + jPanel1.add(close); this.add(jLabel1, new GridBagConstraints(0, 0, 2, 1, 0.0, 0.0 , GridBagConstraints.WEST, GridBagConstraints.NONE, @@ -126,11 +126,11 @@ public class SequenceFetcher JComboBox database = new JComboBox(); JLabel jLabel1 = new JLabel(); JButton ok = new JButton(); - JButton cancel = new JButton(); + JButton close = new JButton(); JPanel jPanel1 = new JPanel(); JTextField textfield = new JTextField(); GridBagLayout gridBagLayout1 = new GridBagLayout(); - public void cancel_actionPerformed(ActionEvent e) + public void close_actionPerformed(ActionEvent e) { try { @@ -146,7 +146,7 @@ public class SequenceFetcher database.setEnabled(false); textfield.setEnabled(false); ok.setEnabled(false); - cancel.setEnabled(false); + close.setEnabled(false); Thread worker = new Thread(this); worker.start(); @@ -157,7 +157,7 @@ public class SequenceFetcher database.setEnabled(true); textfield.setEnabled(true); ok.setEnabled(true); - cancel.setEnabled(true); + close.setEnabled(true); frame.setTitle(getFrameTitle()); }