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

Opening one node in TreeView queries all nodes that have children

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • fx2.1
    • fx2.1
    • javafx
    • Windows 7 64-bit, JavaFX 2.1

      In debugging another problem with TreeView I've found that when a child node of the (hidden) root node is clicked open (to display some grandchildren of root), all nodes that indicated that they have grand children (whether displayed or not and even when never shown before) are queried about their children.

      In my case that was only a small number of nodes (30 orso, of which 25 aren't even visible), but I think this could be a major performance issue if those nodes are backed by something with a bit more latency, like say a directory structure on a local filesystem. In fact, even if my case there's some noticable delay (0.5 seconds) when opening the first node like this due to 30 nodes being queried for their children.

            jgiles Jonathan Giles
            jhendrikx John Hendrikx
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: