X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fappletgui%2FAnnotationColourChooser.java;h=583f64f1a7a3a7c2726fac1f87b96e795c0f210c;hb=4cea7a0328724b90a6a7c16ae8c926e0cc12cedd;hp=3c0f704e48fe37b868c6607fd797142bc98c2672;hpb=76fedb7b598550f6773dfdb902e5c69aefbfc8dc;p=jalview.git diff --git a/src/jalview/appletgui/AnnotationColourChooser.java b/src/jalview/appletgui/AnnotationColourChooser.java index 3c0f704..583f64f 100644 --- a/src/jalview/appletgui/AnnotationColourChooser.java +++ b/src/jalview/appletgui/AnnotationColourChooser.java @@ -111,9 +111,9 @@ public class AnnotationColourChooser extends Panel implements annotations.addItem(list.elementAt(i).toString()); } - threshold.addItem("No Threshold"); - threshold.addItem("Above Threshold"); - threshold.addItem("Below Threshold"); + threshold.addItem(MessageManager.getString("label.threshold_feature_no_thereshold")); + threshold.addItem(MessageManager.getString("label.threshold_feature_above_thereshold")); + threshold.addItem(MessageManager.getString("label.threshold_feature_below_thereshold")); if (oldcs instanceof AnnotationColourGradient) { @@ -122,13 +122,13 @@ public class AnnotationColourChooser extends Panel implements switch (acg.getAboveThreshold()) { case AnnotationColourGradient.NO_THRESHOLD: - threshold.select("No Threshold"); + threshold.select(0); break; case AnnotationColourGradient.ABOVE_THRESHOLD: - threshold.select("Above Threshold"); + threshold.select(1); break; case AnnotationColourGradient.BELOW_THRESHOLD: - threshold.select("Below Threshold"); + threshold.select(1); break; default: throw new Error( @@ -401,11 +401,11 @@ public class AnnotationColourChooser extends Panel implements .getSelectedIndex()]; int aboveThreshold = -1; - if (threshold.getSelectedItem().equals("Above Threshold")) + if (threshold.getSelectedIndex()==1) { aboveThreshold = AnnotationColourGradient.ABOVE_THRESHOLD; } - else if (threshold.getSelectedItem().equals("Below Threshold")) + else if (threshold.getSelectedIndex()==2) { aboveThreshold = AnnotationColourGradient.BELOW_THRESHOLD; }