Changes current value of the model, typically this value is displayed
by the
editor
part of a
JSpinner
.
If the
SpinnerModel
implementation doesn't support
the specified value then an
IllegalArgumentException
is thrown. For example a
SpinnerModel
for numbers might
only support values that are integer multiples of ten. In
that case,
model.setValue(new Number(11))
would throw an exception.
Throws:
-
IllegalArgumentException - if
value
isn't allowed
See Also:
SpinnerModel.getValue()
,