Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8094205

Spinner control auto commit value

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8u60
    • 8u40
    • javafx
    • None
    • Java 8u40b17

      I'm using Spinner from 8u40b17.

      SpinnerValueFactory svf = new SpinnerValueFactory.IntegerSpinnerValueFactory(0, 100);

      Spinner sp = new Spinner();
      sp.setValueFactory(svf);
      sp.setEditable(true);
      sp.setPrefWidth(80);

      I noticed that when I enter some value from keyboard and I increase the upper value the expected number is not the next. The value is not auto commited. Instead of this it's the next default value. How I can fix this?

      For example: if I have 5 as default value and I enter 34, then press the upper arrow I expect to get 35 by actually get 6.

            jgiles Jonathan Giles
            ppenzovjfx Peter Penzov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: