if (getColour(lastFeatureAdded) != null)\r
{\r
colour.setBackground(getColour(lastFeatureAdded));\r
- colour.setForeground(getColour(lastFeatureAdded));\r
}\r
else\r
{\r
colour.setBackground(new Color(60, 160, 115));\r
- colour.setForeground(new Color(60, 160, 115));\r
}\r
\r
}\r
end.setValue(new Integer(features[index].getEnd()));\r
colour.setBackground(\r
getColour(name.getSelectedItem().toString()));\r
- colour.setForeground(\r
- getColour(name.getSelectedItem().toString()));\r
\r
SearchResults highlight = new SearchResults();\r
highlight.addResult(sequences[0],\r
ap.seqPanel.seqCanvas.highlightSearchResults(highlight);\r
\r
}\r
+ Color col = getColour(name.getSelectedItem().toString());\r
+ if (col == null)\r
+ col = new\r
+ jalview.schemes.UserColourScheme()\r
+ .createColourFromName(name.getSelectedItem().toString());\r
+\r
+ colour.setBackground(col);\r
}\r
});\r
\r