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

Combo box display bug on reselect after clearSelection

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 7u6
    • Fix Version/s: 8
    • Component/s: javafx
    • Labels:
    • Environment:

      Windows 7 Home Premium X64
      JavaFX 2.2 provided by Java 7 update 6 x86

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jgiles Jonathan Giles
              Reporter:
              duke J. Duke (Inactive)
              Votes:
              4 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved:
                Imported: