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

Add treeShowing listener only when needed

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9, openjfx11, openjfx15
    • Fix Version/s: openjfx17
    • Component/s: javafx
    • Labels:

      Description

      JDK-8090322 added an internal treeShowing property that tracks whether a node is both treeVisible and showing (i.e., attached to a scene that is attached to a window that is showing).

      This causes a listener to be added to the Scene for each node in the scene, making it expensive to add and remove nodes from the scene graph. A performance optimization would be to compute this only for the subset of UI controls need to know whether a node is treeShowing.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jhendrikx John Hendrikx
              Reporter:
              kcr Kevin Rushforth
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: