TreeView - Selected Item changes when expanding a dynamic node

XMLWordPrintable

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: P4
    • 8u20
    • Affects Version/s: 7u6
    • Component/s: javafx
    • Environment:

      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

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

              Created:
              Updated:
              Resolved:
              Imported: