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

Combo box display bug on reselect after clearSelection

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • 7u6
    • javafx
    • Windows 7 Home Premium X64
      JavaFX 2.2 provided by Java 7 update 6 x86

      Here is my case:
      1 - I have a ComboBox that holds some values.
      2 - I manualy select the first value.
      3 - I clear the selection with method cb.getSelectionModel().clearSelection().
      4 - I select again the first value. (manualy or by code...it does the same)

      Bug: the value is not shown, even though when I click on the combobox I see in that list that the item is selected.
      The only solution for showing it is to select another one, then select this one again.
      Conclusion, rendering is not triggered if same value is selected after using clearSelection.

      I tried to fire different type of events on the combo box, but with no effect.

      Thank you.

            jgiles Jonathan Giles
            duke J. Duke
            Votes:
            4 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: