for (int i=0; i < ColourProperties.getColourSchemeNames().size(); i++)\r
colourCombo.addItem(ColourProperties.getColourSchemeNames().elementAt(i));\r
\r
- showGroup();\r
- updateGroupcombo();\r
+ if(groups.size()>0)\r
+ {\r
+ showGroup();\r
+ updateGroupcombo();\r
+ }\r
\r
assignedList.addMouseListener( new MouseAdapter()\r
{\r
\r
void showGroup()\r
{\r
+ if(groups.size()<1)\r
+ return;\r
+\r
assignedVector = new Vector();\r
if(selectedGroupIndex!=-1)\r
{\r
\r
protected void colourCombo_actionPerformed(ActionEvent e)\r
{\r
+ if(groups.size()<1)\r
+ return;\r
+\r
SequenceGroup sg = (SequenceGroup)groups.elementAt(selectedGroupIndex);\r
\r
sg.cs = ColourSchemeFactory.get( (String)colourCombo.getSelectedItem() );\r