I am interested by change the value only when I press one of the arrows in a JSpinner component, like Mathias Nilsson.
The code written by Michael Dunn works fine but buttons of the JSpinner have not the good Look & Feel. Indeed, I use the Nimbus Look & Feel but when I use this code, the buttons of the corresponding JSpinner have not this Look & Feel anymore.
If somebody know how du this without losing the Nimbus Look & Feel...
Thank you in advance for your help.
Joined: Oct 13, 2005
Now, that's an interesting question!
I am sure you can change the look'n'feel. Yes, there is a section about it in the Java Tutorials.
Joined: Aug 19, 2014
I have tried this code :
to see if the up button looks now good, but the look and feel of this button has not changed.
Also, my main method of my maint class is this one :
So the nimbus Look & Feel is initialised and all the components except the JSpinner on which I set the UI to myUI have the good look.
I have read the tutorial, but I don't understand how make it to work...