title: How to make a TimeSpinner in JavaFX?
body: <p>I would like to make a spinner to enter the time just like this : <a href="https://www.youtube.com/watch?v=QJOv8oBVJ0Y" rel="noreferrer">Youtube Vidéo</a></p>
  
  <p>If someone knows where the source code is hiding, it would be perfect.
  But if not, I would like to try and implement it myself, but how do I even make 3 different (focusable ?) textarea like this ?</p>
  
  <p>Edit : Here is what I got, but I would like to able to select the hours and the increment the hours not only the minutes (and same for the seconds ofc)</p>
  
  <pre><code>Spinner&lt;LocalTime&gt; spinner = new Spinner(new SpinnerValueFactory() {
  
          {
              setConverter(new LocalTimeStringConverter(FormatStyle.MEDIUM));
          }
  
          @Override
          public void decrement(int steps) {
              if (getValue() == null)
                  setValue(LocalTime.now());
              else {
                  LocalTime time = (LocalTime) getValue();
                  setValue(time.minusMinutes(steps));
              }
          }
  
          @Override
          public void increment(int steps) {
              if (this.getValue() == null)
                  setValue(LocalTime.now());
              else {
                  LocalTime time = (LocalTime) getValue();
                  setValue(time.plusMinutes(steps));
              }
          }
      });
      spinner.setEditable(true);
  </code></pre>
  
  <p>This is the result I get :</p>
  
  <p><a href="https://i.stack.imgur.com/MAIen.png" rel="noreferrer"><img src="https://i.stack.imgur.com/MAIen.png" alt="enter image description here"></a></p>
  
  <p>Thanks</p>