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

ComboBox : issue when setting a value programmatically

XMLWordPrintable

      In Scene Builder, we have the following use case :
      - in a ComboBox, a user enter a value
      - if this value is invalid, the value is set back to the previous value

      This validation checking is done in the comboBox setOnAction(), and if invalid, comboBox setValue() method is used to come back to the previous value.

      This does not work : the comboBox still display the invalid value.
      Now, if we use the comboBox getEditor().setText() method, this is working fine !

      I was not (yet) able to reproduce in a separate test case. This can be reproduced using SB, from any inspector ComboBox.

            jgiles Jonathan Giles
            jcambon Jerome Cambon
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: