X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FFeatureTypeSettings.java;h=58bbbe8848f4d73634fdd63a271473a9e3941be5;hb=403014222ea05e99c1bddeb6aaf3a85078f99756;hp=43a9e6a84d03d72235c028bd1f2b885a7f485403;hpb=6bb0b7e5af42a340f9b9778e6f0ebb8b0d04f32e;p=jalview.git diff --git a/src/jalview/gui/FeatureTypeSettings.java b/src/jalview/gui/FeatureTypeSettings.java index 43a9e6a..58bbbe8 100644 --- a/src/jalview/gui/FeatureTypeSettings.java +++ b/src/jalview/gui/FeatureTypeSettings.java @@ -242,8 +242,7 @@ public class FeatureTypeSettings extends JalviewDialog String title = MessageManager .formatMessage("label.display_settings_for", new String[] { theType }); - initDialogFrame(this, true, false, title, 500, 500); - + initDialogFrame(this, true, false, title, 580, 500); waitForInput(); } @@ -366,8 +365,7 @@ public class FeatureTypeSettings extends JalviewDialog : BELOW_THRESHOLD_OPTION); slider.setEnabled(true); slider.setValue((int) (fc.getThreshold() * scaleFactor)); - float roundedSliderValue = getRoundedSliderValue(); - thresholdValue.setText(String.valueOf(fc.getThreshold()));// roundedSliderValue)); + thresholdValue.setText(String.valueOf(fc.getThreshold())); thresholdValue.setEnabled(true); thresholdIsMin.setEnabled(true); } @@ -653,6 +651,7 @@ public class FeatureTypeSettings extends JalviewDialog { thresholdValue .setText(String.valueOf(slider.getValue() / scaleFactor)); + thresholdValue.setBackground(Color.white); // to reset red for invalid sliderValueChanged(); } }