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

Opening one node in TreeView queries all nodes that have children

    XMLWordPrintable

    Details

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

      Windows 7 64-bit, JavaFX 2.1

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported: