From: Jim Procter Date: Wed, 3 May 2017 10:46:23 +0000 (+0100) Subject: JAL-2432 applet: only enable percent checkbox when threshold is active X-Git-Tag: Release_2_10_2~3^2~109^2~3 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=fd67556734bb00cd466b4d0c87473749880c748e;p=jalview.git JAL-2432 applet: only enable percent checkbox when threshold is active --- diff --git a/src/jalview/appletgui/AnnotationColumnChooser.java b/src/jalview/appletgui/AnnotationColumnChooser.java index 4118e83..36f8a84 100644 --- a/src/jalview/appletgui/AnnotationColumnChooser.java +++ b/src/jalview/appletgui/AnnotationColumnChooser.java @@ -406,12 +406,14 @@ public class AnnotationColumnChooser extends AnnotationRowFilter implements slider.setEnabled(true); thresholdValue.setEnabled(true); + percentThreshold.setEnabled(true); if (selectedThresholdItem == AnnotationColourGradient.NO_THRESHOLD) { slider.setEnabled(false); thresholdValue.setEnabled(false); thresholdValue.setText(""); + percentThreshold.setEnabled(false); // build filter params } else if (selectedThresholdItem != AnnotationColourGradient.NO_THRESHOLD) @@ -436,6 +438,7 @@ public class AnnotationColumnChooser extends AnnotationRowFilter implements // slider.setMajorTickSpacing((int) (range / 10f)); slider.setEnabled(true); thresholdValue.setEnabled(true); + percentThreshold.setEnabled(true); adjusting = false; // build filter params