*/
public WholeNumberField(int inMaxDigits)
{
- super("0");
+ super(inMaxDigits);
setDocument(new WholeNumberDocument(inMaxDigits));
}
return parseValue(getText());
}
+ /**
+ * @param inValue value to set
+ */
+ public void setValue(int inValue)
+ {
+ setText("" + inValue);
+ }
+
/**
* @param inText text to parse
* @return value as integer