diff --git a/uk/ac/sanger/artemis/components/FeatureEdit.java b/uk/ac/sanger/artemis/components/FeatureEdit.java index 4667a15210929a04c144d31d1a19220ae4435e40..aef7b067c7b6d505d711fc7101ffbb81a049715a 100644 --- a/uk/ac/sanger/artemis/components/FeatureEdit.java +++ b/uk/ac/sanger/artemis/components/FeatureEdit.java @@ -86,10 +86,6 @@ import javax.swing.*; public class FeatureEdit extends JPanel implements EntryChangeListener, FeatureChangeListener { - - /** - * - */ private static final long serialVersionUID = 1L; @@ -104,9 +100,6 @@ public class FeatureEdit extends JPanel /** The location text - set by updateLocation(). */ private JTextField location_text = new JTextField(LOCATION_TEXT_WIDTH); - /** When pressed - apply changes and dispose of the component. */ - private JButton ok_button = new JButton("OK"); - /** When pressed - discard changes and dispose of the component. */ private JButton cancel_button = new JButton("Cancel"); @@ -292,7 +285,7 @@ public class FeatureEdit extends JPanel /** * Add an ActionListener to the Cancel JButton of this FeatureEdit. **/ - public void addCancelActionListener(final ActionListener l) + protected void addCancelActionListener(final ActionListener l) { cancel_button.addActionListener(l); } @@ -300,7 +293,7 @@ public class FeatureEdit extends JPanel /** * Remove an ActionListener from the Cancel JButton of this FeatureEdit. **/ - public void removeCancelActionListener(final ActionListener l) + protected void removeCancelActionListener(final ActionListener l) { cancel_button.removeActionListener(l); } @@ -308,19 +301,11 @@ public class FeatureEdit extends JPanel /** * Add an ActionListener to the Apply JButton of this FeatureEdit. **/ - public void addApplyActionListener(final ActionListener l) + protected void addApplyActionListener(final ActionListener l) { apply_button.addActionListener(l); } - /** - * Remove an ActionListener from the Apply JButton of this FeatureEdit. - **/ - public void removeApplyActionListener(final ActionListener l) - { - apply_button.removeActionListener(l); - } - /** * Implementation of the FeatureChangeListener interface. We need to * listen to feature change events from the Features in this object so that @@ -822,6 +807,7 @@ public class FeatureEdit extends JPanel } }); + final JButton ok_button = new JButton("OK"); if(!getFeature().isReadOnly()) { ok_button.addActionListener(new ActionListener()