How can I make a JSpinner that doesn't allow manual typing into it. I want my spinner to only have even numbers so I made it increment by twos. The the problem becomes that a user can type say a 3 and now your numbers are 3, 5, 7, 9 all of which are odd. I was hoping I was going to find a method such as setEditable()
or setTypable()
but didn't find one. Any ideas?
Asked
Active
Viewed 239 times
0

Christopher Smith
- 440
- 3
- 15
-
I couldn't find an existing answer, thanks! – Christopher Smith Aug 08 '14 at 16:38