From: amwaterhouse Date: Mon, 29 Aug 2005 17:22:17 +0000 (+0000) Subject: Include None in default colours X-Git-Tag: Release_2_05~3 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=d19f6b27ef8ee7350763cfaa511270bf128e76a9;p=jalview.git Include None in default colours --- diff --git a/src/jalview/gui/Preferences.java b/src/jalview/gui/Preferences.java index bec82a5..be1455b 100755 --- a/src/jalview/gui/Preferences.java +++ b/src/jalview/gui/Preferences.java @@ -93,21 +93,14 @@ public class Preferences extends GPreferences quality.setSelected(Cache.getDefault("SHOW_QUALITY", true)); identity.setSelected(Cache.getDefault("SHOW_IDENTITY", true)); - for (int i = 0; i < 12; i++) + for (int i = 0; i < 13; i++) { colour.addItem(ColourSchemeProperty.getColourName(i)); } - String string = Cache.getProperty("DEFAULT_COLOUR"); + String string = Cache.getDefault("DEFAULT_COLOUR", "None"); - if (string != null) - { - colour.setSelectedItem(string); - } - else - { - colour.setSelectedIndex(11); - } + colour.setSelectedItem(string); String[] fonts = java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment() .getAvailableFontFamilyNames();