boolean isIntegerParameter;
+ boolean isStringParameter;
+
boolean adjusting;
JComboBox<String> choicebox;
{
ValueType type = validator.getType();
isIntegerParameter = type == ValueType.Integer;
+ isStringParameter = type == ValueType.String;
/*
* ensure slider has an integer range corresponding to
* the min-max range of the parameter
*/
- if (validator.getMin() != null && !isIntegerParameter)
+ if (validator.getMin() != null && !isIntegerParameter
+ && !isStringParameter)
{
double min = validator.getMin().doubleValue();
double max = validator.getMax().doubleValue();
*/
Object updateSliderFromValueField()
{
- if (validator == null)
+ if (validator == null || isStringParameter)
{
if (isChoiceParameter)
{