From: gmungoc Date: Tue, 11 Sep 2018 14:04:29 +0000 (+0100) Subject: JAL-3048 recoded edit View Name dialog for JalviewJS X-Git-Tag: Release_2_11_4_0~45^2~18^2~446 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=8b56642ad01b7d0c99c74160600eabb803ed6485;p=jalview.git JAL-3048 recoded edit View Name dialog for JalviewJS --- diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index 01464fd..161fd7e 100644 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -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) {