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

getOwnedWindows()

XMLWordPrintable

    • 1.2beta4
    • x86
    • windows_nt
    • Not verified



      Name: chT40241 Date: 10/06/97


      java.awt.Frame keeps a Vector of windows for which it is the parent (owner). There is no method to retrieve a list of these windows like there is for getting the components in a container (Component[] getComponents()). Thus, there is no convenient way to get a list of dialogs. I would like to see the following method added. ownedWindows is a Vector of the windows owned by the frame in the current source for java.awt.Frame.

      /**
       * @returns an array of windows owned by this frame
       */
      public Window[] getOwnedWindows() {
        Window[] windows = new Window[ownedWindows.size()];
        ownedWindows.copyInto(windows);
        return windows;
      }


      ======================================================================

            rkhansunw Robi Khan (Inactive)
            chickeysunw Chuck Hickey (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: