X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FOptsAndParamsPage.java;h=0f4d0e7377b82e131751d4ed11b05f20741e014b;hb=b35271fb7c5b9cb0a07aeefca9e2e5b5d5bdaa8d;hp=acd8445c03d0befe1006bbcfb24c4e6915edf874;hpb=a3d80544cd19436e1ee4abbcfa9befcc926784bf;p=jalview.git diff --git a/src/jalview/gui/OptsAndParamsPage.java b/src/jalview/gui/OptsAndParamsPage.java index acd8445..0f4d0e7 100644 --- a/src/jalview/gui/OptsAndParamsPage.java +++ b/src/jalview/gui/OptsAndParamsPage.java @@ -288,7 +288,7 @@ public class OptsAndParamsPage boolean integ = false; - Object lastVal; + String lastVal; ParameterI parameter; @@ -300,11 +300,6 @@ public class OptsAndParamsPage Slider slider = null; - /* - * true minimum corresponding to 0 (minimum) of the slider - */ - int sliderZeroValue; - JTextArea string = new JTextArea(); ValueConstrainI validator = null; @@ -484,9 +479,10 @@ public class OptsAndParamsPage * * @return */ - private Object getCurrentValue() + private String getCurrentValue() { - return choice ? choicebox.getSelectedItem() : valueField.getText(); + return choice ? (String) choicebox.getSelectedItem() + : valueField.getText(); } @Override