X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjalview%2Fappletgui%2FAnnotationColourChooser.java;h=9456986e141d6a4ba6f7a99c042a817c70eb224c;hb=8479d86d490c841168c9eed1ac80960ce4191c78;hp=533226edf5cf938977a42329402e96234a305e5f;hpb=106a3890f956e2aa7780b2985f4326655912a558;p=jalview.git diff --git a/src/jalview/appletgui/AnnotationColourChooser.java b/src/jalview/appletgui/AnnotationColourChooser.java index 533226e..9456986 100644 --- a/src/jalview/appletgui/AnnotationColourChooser.java +++ b/src/jalview/appletgui/AnnotationColourChooser.java @@ -350,7 +350,7 @@ public class AnnotationColourChooser extends Panel implements { try { - float f = new Float(thresholdValue.getText()).floatValue(); + float f = Float.valueOf(thresholdValue.getText()).floatValue(); slider.setValue((int) (f * 1000)); adjustmentValueChanged(null); } catch (NumberFormatException ex)