I’m using a JSpinner for displaying years. Currently the JSpinner displays values above 1000 with a delimiter. 1990 gets to 1.990.
I’m trying to set a custom NumberEditor to the JSpinner:
spBirthdayYear.setEditor(new JSpinner.NumberEditor(spBirthdayYear, "####"));
This doesn’t work. Where is the mistake?
you can change SpinnerModel for JSpinner, and you could set various formats