From fd67556734bb00cd466b4d0c87473749880c748e Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Wed, 3 May 2017 11:46:23 +0100 Subject: [PATCH] JAL-2432 applet: only enable percent checkbox when threshold is active --- src/jalview/appletgui/AnnotationColumnChooser.java | 3 +++ 1 file changed, 3 insertions(+) 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 -- 1.7.10.2