Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JSpinner - Increment or decrement button pressed?

843806Sep 30 2008 — edited Oct 6 2008
Hi Folks,

I have a JSpinner component which can only be updated through the increment/decrement buttons.
To validate the value before updating the UI, I need to verify the next value. So how do I determine if the user clicked the increment or the decrement button?

Also, the sequence of valid values that the JSpinner can display is not linear but changes based on the previous value.
For eg, the valid values are 4, 5, 8, 12, 17.. to a max of 300

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 3 2008
Added on Sep 30 2008
14 comments
1,698 views