daily pastebin goal
51%
SHARE
TWEET

Untitled

a guest Sep 14th, 2018 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Set step for a DateEditor in a JSpinner
  2. SpinnerNumberModel(value, min, max, step);
  3.    
  4. JSpinner timeSpinner = new JSpinner( new SpinnerDateModel() );
  5. DateEditor timeEditor = new DateEditor(timeSpinner, "HH:mm:ss");
  6. timeSpinner.setEditor(timeEditor);
  7. timeSpinner.setValue(new Date()); // will only show the current time
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top