This content has been marked as final. Show 3 replies
I'm no swing or jspinner expert, but it seems perhaps presumptuous to assume that just adding the component (editor2) to the jspinner will change the spinner's editor. Have you looked at the JSpinner API before posting here? I bet it'll tell you how to change the spinner's editor, and that the way you tried isn't it.
1) the arguments for GregorianCalendar are in the wrong order
2) if you want Jan 1, months are 0-based
2) if you want Jan 1Best to use the Calendar month constants; e.g., Calendar.JANUARY.