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

TreeView item focus shifts to wrong item on expand and collapse, protential fix provided

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • fx2.0.2
    • javafx

      Item focus changes affected by expanding or collapsing items. Testing source from: http://docs.oracle.com/javafx/2/ui_controls/tree-view.htm#BABJGGGF.

      1. Expand and select "Sales Department"
      2, Expand "IT Support"

      You can see the focus is shifted to "Michael Brown", instead of the original "Sales Department".

      Sorry I cannot attach screen images to show the effect.

      The problem is in TreeView#TreeViewFocusModel class. See following comment for suggested fix marked by tony_lai.

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

              Created:
              Updated:
              Resolved:
              Imported: