From: amwaterhouse Date: Thu, 10 Feb 2005 13:21:56 +0000 (+0000) Subject: edit sequence name method X-Git-Tag: Release_2_0~679 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=dfb0a0fc461353af5800d46078816f5d43720edc;p=jalview.git edit sequence name method --- diff --git a/src/jalview/gui/PopupMenu.java b/src/jalview/gui/PopupMenu.java index 2bdaf37..a1007bb 100755 --- a/src/jalview/gui/PopupMenu.java +++ b/src/jalview/gui/PopupMenu.java @@ -111,10 +111,7 @@ public class PopupMenu extends JPopupMenu if(seq!=null) - { residueMenu.setVisible(false); - sequenceName.setText( sequence.getName() ); - } else sequenceMenu.setVisible(false); @@ -172,7 +169,7 @@ public class PopupMenu extends JPopupMenu } }); sequenceMenu.setText("Sequence"); - sequenceName.setText("sequenceName"); + sequenceName.setText("Edit name"); sequenceName.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) @@ -587,7 +584,7 @@ public class PopupMenu extends JPopupMenu String s = (String)JOptionPane.showInternalInputDialog( ap, "Edit sequence name", - "Edit sequence name", + "Edit sequence name ("+sequence.getName()+")", JOptionPane.PLAIN_MESSAGE, null, null,