JAL-3048 recoded edit View Name dialog for JalviewJS
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 11 Sep 2018 14:04:29 +0000 (15:04 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 11 Sep 2018 14:04:29 +0000 (15:04 +0100)
src/jalview/gui/AlignFrame.java

index 01464fd..161fd7e 100644 (file)
@@ -125,7 +125,6 @@ import java.awt.event.MouseEvent;
 import java.awt.print.PageFormat;
 import java.awt.print.PrinterJob;
 import java.beans.PropertyChangeEvent;
-import java.beans.PropertyChangeListener;
 import java.io.File;
 import java.io.FileWriter;
 import java.io.PrintWriter;
@@ -4858,8 +4857,8 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener,
     if (e.isPopupTrigger())
     {
       String msg = MessageManager.getString("label.enter_view_name");
-      String reply = JvOptionPane.showInternalInputDialog(this, msg, msg,
-              JvOptionPane.QUESTION_MESSAGE);
+      String ttl = tabbedPane.getTitleAt(tabbedPane.getSelectedIndex());
+      String reply = JvOptionPane.showInputDialog(msg, ttl);
 
       if (reply != null)
       {