Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Set step for a DateEditor in a JSpinner
- SpinnerNumberModel(value, min, max, step);
- JSpinner timeSpinner = new JSpinner( new SpinnerDateModel() );
- DateEditor timeEditor = new DateEditor(timeSpinner, "HH:mm:ss");
- timeSpinner.setEditor(timeEditor);
- timeSpinner.setValue(new Date()); // will only show the current time
Add Comment
Please, Sign In to add comment