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

Add treeShowing listener only when needed

    XMLWordPrintable

Details

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

    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

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

              Dates

                Created:
                Updated:
                Resolved: