remove separator
authoramwaterhouse <Andrew Waterhouse>
Mon, 23 May 2005 16:30:46 +0000 (16:30 +0000)
committeramwaterhouse <Andrew Waterhouse>
Mon, 23 May 2005 16:30:46 +0000 (16:30 +0000)
src/jalview/gui/PopupMenu.java

index 447055a..8294469 100755 (executable)
@@ -112,7 +112,9 @@ public class PopupMenu extends JPopupMenu
     }\r
 \r
     if( !ap.av.alignment.getGroups().contains(sg))\r
-        unGroupMenuItem.setVisible(false);\r
+      unGroupMenuItem.setVisible(false);\r
+    else\r
+      groupMenu.insertSeparator(3);\r
 \r
     if(seq==null)\r
        sequenceMenu.setVisible(false);\r
@@ -204,7 +206,6 @@ public class PopupMenu extends JPopupMenu
     groupMenu.add(groupName);\r
     groupMenu.addSeparator();\r
     groupMenu.add(unGroupMenuItem);\r
-    groupMenu.addSeparator();\r
     groupMenu.add(colourMenu);\r
     groupMenu.addSeparator();\r
     groupMenu.add(showBoxes);\r