-
Enhancement
-
Resolution: Fixed
-
P4
-
1.1.5
-
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;
}
======================================================================