Hi,
never had to do this before until today.......
A jspinner which spins between page 1 & n of a document.
once my jspiner is on the screen and i want to display another document with
more or less pages than my last , how do i re-set my jspinner "upper" limit
to the new value.
steve
Fred Kleinschmidt - 08 Jan 2007 20:02 GMT
> Hi,
>
[quoted text clipped - 7 lines]
> limit
> to the new value.
Presumably you are using a SpinnerNumberModel. Use its setMaximum()
method.
For example:
SpinnerNumberModel m = (SpinnerNumberModel)spinner.getModel();
m.setMaximum( new Integer(newmax) );

Signature
Fred L. Kleinschmidt
Boeing Associate Technical Fellow
Technical Architect, Software Reuse Project