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

When TreeItems added lazily to selected items in tree view, blue highlight moves to last added child node

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: fx2.0
    • Fix Version/s: fx2.1
    • Component/s: javafx
    • Labels:
    • Environment:

      Windows 7

      Description

      I lazily add tree items to my tree view when an existing tree item in the tree view is expanded for the first time. This is to prevent creating tree nodes that may never be displayed.

      Unfortunately, when I expand a node that is selected and respond to the change in the expandedProperty by added child nodes to the newly expanded tree node, it appears that the last added child node is selected. It is not selected and it shouldn't be selected, but neither should it be highlighted as if it is selected.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported: