From d8ef03eff8d0af43223689e00bcc9678e5d6aeab Mon Sep 17 00:00:00 2001 From: gmungoc Date: Tue, 30 Aug 2016 15:27:14 +0100 Subject: [PATCH] JAL-2183 formatter added @Override (only) --- src/jalview/gui/JalviewDialog.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); -- 1.7.10.2