How to limit JSpinner

jacknad picture jacknad · Apr 8, 2013 · Viewed 54.5k times · Source

The valid range for this application is 0 to 9 but there seems to be no NetBeans 7.0.1 JSpinner minimum or maximum value setting. Is there another way to limit the range of this JSpinner to 0..9?

Answer

Oguz Ozkeroglu picture Oguz Ozkeroglu · Apr 8, 2013

In my Netbeans 7.3 i followed theese steps:

Step 1:

swing spinner spinnernumbermodel

Step 2:

swing spinner spinnernumbermodel

Step 3:

swing spinner spinnernumbermodel

And final step 4:

enter image description here

That works for me.