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

TreeView.getSelectionModel().getSelectedItems() sends 2 events when changing selection

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • 8
    • javafx

      I add a ListChangeListener to the TreeView.getSelectionModel().getSelectedItems() property.

      The first time I select an item, I receive a single event with the selected item as expected.
      But the next selections do not work as expected.
      When I change the selection and click on another item, I receive 2 events instead of single one :
      - first one with empty selection
      - second one with the selected item

      Simple test case attached to reproduce.

            jgiles Jonathan Giles
            slions Sandra Lions-piron
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: