X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FPopupMenu.java;h=55aea5ec725bbf6648ddfee32942202796b4d485;hb=f744d455e1b6bae50524152edf2fe8c78a8dffab;hp=968262bf9ef69e6d157aeea79a7e9821247431f0;hpb=be0ebdb58f73968ae968799cb67acf32e150463d;p=jalview.git diff --git a/src/jalview/gui/PopupMenu.java b/src/jalview/gui/PopupMenu.java index 968262b..55aea5e 100755 --- a/src/jalview/gui/PopupMenu.java +++ b/src/jalview/gui/PopupMenu.java @@ -68,7 +68,7 @@ public class PopupMenu extends JPopupMenu JCheckBoxMenuItem showBoxes = new JCheckBoxMenuItem(); JCheckBoxMenuItem showText = new JCheckBoxMenuItem(); JCheckBoxMenuItem showColourText = new JCheckBoxMenuItem(); - JMenu jMenu1 = new JMenu(); + JMenu editMenu = new JMenu(); JMenuItem cut = new JMenuItem(); JMenuItem copy = new JMenuItem(); JMenuItem upperCase = new JMenuItem(); @@ -233,7 +233,10 @@ public class PopupMenu extends JPopupMenu showBoxes.setSelected(sg.getDisplayBoxes()); } else + { groupMenu.setVisible(false); + editMenu.setVisible(false); + } if (!ap.av.alignment.getGroups().contains(sg)) { @@ -362,7 +365,7 @@ public class PopupMenu extends JPopupMenu showColourText_actionPerformed(e); } }); - jMenu1.setText("Edit"); + editMenu.setText("Edit"); cut.setText("Cut"); cut.addActionListener(new ActionListener() { @@ -397,7 +400,7 @@ public class PopupMenu extends JPopupMenu }); add(groupMenu); add(sequenceMenu); - this.add(jMenu1); + this.add(editMenu); groupMenu.add(groupName); groupMenu.addSeparator(); groupMenu.add(unGroupMenuItem); @@ -447,10 +450,10 @@ public class PopupMenu extends JPopupMenu colourMenu.addSeparator(); colourMenu.add(abovePIDColour); colourMenu.add(conservationMenuItem); - jMenu1.add(copy); - jMenu1.add(cut); - jMenu1.add(upperCase); - jMenu1.add(lowerCase); + editMenu.add(copy); + editMenu.add(cut); + editMenu.add(upperCase); + editMenu.add(lowerCase); noColourmenuItem.setText("None"); noColourmenuItem.addActionListener(new java.awt.event.ActionListener() {