After setting new root on TreeView, focus model's focused item property is not updated

XMLWordPrintable

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

      JavaFX 2.2b3 32-bit, Windows 7 64-bit

      When changing a TreeView by directly setting a new root and then calling focus(0), a binding present on "treeView.getFocusModel().focusedItemProperty()" will not be informed of the fact that the now focused item is a totally different object (although still at index 0). This causes other controls that display information about the currently focused item to not be updated.

      A work-around seems to be to set the focus to -1 first, then to 0 again to trigger the proper update.

            Assignee:
            Jonathan Giles
            Reporter:
            John Hendrikx
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: