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

Component should have a reference to the top-level component it resides in

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 7
    • client-libs
    • generic
    • generic

      There are the following methods: SwingUtilities.getWindowAncestor(Component c) and SunToolkit.getContainingWindow(Component c) that are used to retrieve the top-level root of the hierarchy for a given component.

      These methods used in a number of places in the code Swing and AWT code. Lately we started to use them more often in order to determine whether the top-level window is non-opaque. This, however, seems to be done quite often: even the Swing repainting machinery (which should work as fast as possible) needs this information.

      This change request is about adding a reference to the top-level component right in the Component object in order to be able to retrive it fast.

            Unassigned Unassigned
            anthony Anthony Petrov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: