X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FPreferences.java;fp=src%2Fjalview%2Fgui%2FPreferences.java;h=ca8d5a4d3282f016468740b0c22321342914a295;hb=b57a02c25e335d033c97f8a6bacd6b54f62bd2b6;hp=acb9654cc7feee81764d822c042cbb6e2a4c45ca;hpb=1cc81e06ac2faa5ee4b8879e9fa019956e34259f;p=jalview.git diff --git a/src/jalview/gui/Preferences.java b/src/jalview/gui/Preferences.java index acb9654..ca8d5a4 100755 --- a/src/jalview/gui/Preferences.java +++ b/src/jalview/gui/Preferences.java @@ -150,8 +150,10 @@ public class Preferences extends GPreferences /** * default min-max colours for annotation shading */ - minColour.setBackground(Cache.getDefaultColour("ANNOTATIONCOLOUR_MIN", Color.orange)); - maxColour.setBackground(Cache.getDefaultColour("ANNOTATIONCOLOUR_MAX", Color.red)); + minColour.setBackground(Cache.getDefaultColour("ANNOTATIONCOLOUR_MIN", + Color.orange)); + maxColour.setBackground(Cache.getDefaultColour("ANNOTATIONCOLOUR_MAX", + Color.red)); String[] fonts = java.awt.GraphicsEnvironment .getLocalGraphicsEnvironment().getAvailableFontFamilyNames(); @@ -189,7 +191,8 @@ public class Preferences extends GPreferences startupCheckbox .setSelected(Cache.getDefault("SHOW_STARTUP_FILE", true)); startupFileTextfield.setText(Cache.getDefault("STARTUP_FILE", - Cache.getDefault("www.jalview.org","http://www.jalview.org")+"/examples/exampleFile_2_3.jar")); + Cache.getDefault("www.jalview.org", "http://www.jalview.org") + + "/examples/exampleFile_2_3.jar")); sortby.addItem("No sort"); sortby.addItem("Id"); @@ -339,9 +342,11 @@ public class Preferences extends GPreferences Cache.applicationProperties.setProperty("SORT_ALIGNMENT", sortby .getSelectedItem().toString()); - Cache.setColourProperty("ANNOTATIONCOLOUR_MIN", minColour.getBackground()); - Cache.setColourProperty("ANNOTATIONCOLOUR_MAX", maxColour.getBackground()); - + Cache.setColourProperty("ANNOTATIONCOLOUR_MIN", + minColour.getBackground()); + Cache.setColourProperty("ANNOTATIONCOLOUR_MAX", + maxColour.getBackground()); + if (epsRendering.getSelectedItem().equals("Prompt each time")) { Cache.applicationProperties.remove("EPS_RENDERING"); @@ -458,7 +463,7 @@ public class Preferences extends GPreferences Boolean.toString(autoIdWidth.isSelected())); userIdWidth_actionPerformed(); Cache.applicationProperties.setProperty("FIGURE_USERIDWIDTH", - userIdWidth.getText()); + userIdWidth.getText()); Cache.applicationProperties.setProperty("AUTO_CALC_CONSENSUS", Boolean.toString(autoCalculateConsCheck.isSelected())); @@ -663,6 +668,7 @@ public class Preferences extends GPreferences { return groupURLLinks; } + public void minColour_actionPerformed() { Color col = JColorChooser.showDialog(this,