From ef531032b4d8a0af91bd9a8be6b4d53fbf394c9b Mon Sep 17 00:00:00 2001 From: tcofoegbu Date: Tue, 22 Sep 2015 10:18:47 +0100 Subject: [PATCH] JAL-1774 house keeping --- src/jalview/appletgui/AlignFrame.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/jalview/appletgui/AlignFrame.java b/src/jalview/appletgui/AlignFrame.java index e8ee82b..610f874 100644 --- a/src/jalview/appletgui/AlignFrame.java +++ b/src/jalview/appletgui/AlignFrame.java @@ -2077,15 +2077,17 @@ public class AlignFrame extends EmbmenuFrame implements ActionListener, .getAlignment().getWidth()) ? true : false; if (isEntireAlignWidth) { - String title = MessageManager.getString("label.delete_all"); - Panel mp = new Panel(); - mp.setLayout(new FlowLayout()); - mp.add(new Label(MessageManager.getString("warn.delete_all"))); + Panel infoPanel = new Panel(); + infoPanel.setLayout(new FlowLayout()); + infoPanel + .add(new Label(MessageManager.getString("warn.delete_all"))); final JVDialog dialog = new JVDialog(this, title, true, 400, 200); - dialog.setMainPanel(mp); + dialog.setMainPanel(infoPanel); + dialog.ok.setLabel(MessageManager.getString("action.ok")); + dialog.cancel.setLabel(MessageManager.getString("action.cancel")); dialog.setVisible(true); if (!dialog.accept) -- 1.7.10.2