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

Add treeShowing listener only when needed

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • jfx17
    • jfx11, 9, jfx15
    • javafx

      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.

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

              Created:
              Updated:
              Resolved: