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

TreeView - Selected Item changes when expanding a dynamic node

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • 8u20
    • 7u6
    • javafx
    • Environment: java version "1.7.0_06-ea"
      Java(TM) SE Runtime Environment (build 1.7.0_06-ea-b19)
      Java HotSpot(TM) 64-Bit Server VM (build 23.2-b08, mixed mode)

      javafx.runtime.version: 2.2.0-beta-b17

      The selection model is broken for a TreeView with on demand loading. When expanding/contracting nodes the selected item jumps to a new node and fires a selection event. The selected item should not be changing as the node is simply being expanded.

      Example video and sample code provided.

      To reproduce
      - run the sample program
      - click on a collapsed node to select it
      - click the arrow to expand the node

      You will see the selection jump to a new item. In some cases the display will show two items as selected.

        1. TestTreeView.java
          2 kB
          J. Duke
        2. treeview.mov
          138 kB
          J. Duke

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

              Created:
              Updated:
              Resolved:
              Imported: