JSpinner - Increment or decrement button pressed?
843806Sep 30 2008 — edited Oct 6 2008Hi 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