nucleotideMenuItem_actionPerformed(e);\r
}\r
});\r
+ conservationMenuItem.addItemListener(new ItemListener()\r
+ {\r
+ public void itemStateChanged(ItemEvent itemEvent)\r
+ {\r
+ conservationMenuItem_itemStateChanged(itemEvent);\r
+ }\r
+ });\r
+ abovePIDColour.addItemListener(new ItemListener()\r
+ {\r
+ public void itemStateChanged(ItemEvent itemEvent)\r
+ {\r
+ abovePIDColour_itemStateChanged(itemEvent);\r
+ }\r
+ });\r
\r
add(groupMenu);\r
this.add(sequenceMenu);\r
}\r
});\r
abovePIDColour.setLabel("Above % Identity");\r
- abovePIDColour.addActionListener(new java.awt.event.ActionListener()\r
- {\r
- public void actionPerformed(ActionEvent e)\r
- {\r
- abovePIDColour_actionPerformed(e);\r
- }\r
- });\r
+\r
userDefinedColour.setLabel("User Defined");\r
userDefinedColour.addActionListener(new java.awt.event.ActionListener()\r
{\r
}\r
});\r
conservationMenuItem.setLabel("Conservation");\r
- conservationMenuItem.addActionListener(new java.awt.event.ActionListener()\r
- {\r
- public void actionPerformed(ActionEvent e)\r
- {\r
- conservationMenuItem_actionPerformed(e);\r
- }\r
- });\r
-\r
\r
\r
}\r
\r
\r
\r
- protected void abovePIDColour_actionPerformed(ActionEvent e)\r
+ protected void abovePIDColour_itemStateChanged(ItemEvent ie)\r
{\r
SequenceGroup sg = getGroup();\r
if (abovePIDColour.getState())\r
refresh();\r
}\r
\r
- protected void conservationMenuItem_actionPerformed(ActionEvent e)\r
+ protected void conservationMenuItem_itemStateChanged(ItemEvent ie)\r
{\r
SequenceGroup sg = getGroup();\r
\r