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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: fx2.0.2
    • Fix Version/s: 8
    • Component/s: javafx

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Due:
              Created:
              Updated:
              Resolved:
              Imported: