{\r
public void actionPerformed(ActionEvent e)\r
{\r
- upperCase_actionPerformed(e);\r
+ changeCase(e);\r
}\r
});\r
copy.setText("Copy");\r
{\r
public void actionPerformed(ActionEvent e)\r
{\r
- lowerCase_actionPerformed(e);\r
+ changeCase(e);\r
}\r
});\r
toggle.setText("Toggle Case");\r
{\r
public void actionPerformed(ActionEvent e)\r
{\r
- toggle_actionPerformed(e);\r
+ changeCase(e);\r
}\r
});\r
pdbMenu.setText("Associate Structure with Sequence");\r
groupMenu.addSeparator();\r
groupMenu.add(groupName);\r
groupMenu.add(unGroupMenuItem);\r
- groupMenu.add(colourMenu);\r
+ groupMenu.add(colourMenu);\r
groupMenu.add(showBoxes);\r
- groupMenu.add(showText);\r
- groupMenu.add(showColourText);\r
+ groupMenu.add(showText);\r
+ groupMenu.add(showColourText);\r
groupMenu.add(outline);\r
- sequenceMenu.add(sequenceName);\r
+ sequenceMenu.add(sequenceName);\r
sequenceMenu.add(pdbMenu);\r
colourMenu.add(noColourmenuItem);\r
colourMenu.add(clustalColour);\r
ap.alignFrame.cut_actionPerformed(null);\r
}\r
\r
- public void upperCase_actionPerformed(ActionEvent e)\r
- {\r
- changeCase(e.getSource());\r
- }\r
-\r
- public void lowerCase_actionPerformed(ActionEvent e)\r
- {\r
- changeCase(e.getSource());\r
- }\r
-\r
- public void toggle_actionPerformed(ActionEvent e)\r
- {\r
- changeCase(e.getSource());\r
- }\r
-\r
- void changeCase(Object source)\r
+ void changeCase(ActionEvent e)\r
{\r
+ Object source = e.getSource();\r
SequenceGroup sg = ap.av.getSelectionGroup();\r
Vector regions = new Vector();\r
if (sg != null)\r