From: gmungoc Date: Tue, 30 Aug 2016 14:27:14 +0000 (+0100) Subject: JAL-2183 formatter added @Override (only) X-Git-Tag: Release_2_10_0~66 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=d8ef03eff8d0af43223689e00bcc9678e5d6aeab;p=jalview.git JAL-2183 formatter added @Override (only) --- diff --git a/src/jalview/gui/JalviewDialog.java b/src/jalview/gui/JalviewDialog.java index 3a4dfab..bc6a774 100644 --- a/src/jalview/gui/JalviewDialog.java +++ b/src/jalview/gui/JalviewDialog.java @@ -59,6 +59,7 @@ public abstract class JalviewDialog extends JPanel new Thread(new Runnable() { + @Override public void run() { frame.setVisible(true); @@ -95,16 +96,17 @@ public abstract class JalviewDialog extends JPanel ok.setText(MessageManager.getString("action.ok")); ok.addActionListener(new ActionListener() { + @Override public void actionPerformed(ActionEvent e) { okPressed(); - closeDialog(); } }); cancel.setOpaque(false); cancel.setText(MessageManager.getString("action.cancel")); cancel.addActionListener(new ActionListener() { + @Override public void actionPerformed(ActionEvent e) { cancelPressed();