a guest Sep 14th, 2018 56 Never
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.setValue(new Date()); // will only show the current time
RAW Paste Data