JAL-1774 house keeping
authortcofoegbu <tcnofoegbu@dundee.ac.uk>
Tue, 22 Sep 2015 09:18:47 +0000 (10:18 +0100)
committertcofoegbu <tcnofoegbu@dundee.ac.uk>
Tue, 22 Sep 2015 09:18:47 +0000 (10:18 +0100)
src/jalview/appletgui/AlignFrame.java

index e8ee82b..610f874 100644 (file)
@@ -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)