Skip to main content

Re: How to fetch all Dialogs

No replies

On Sat, Oct 04, 2003 at 05:06:35AM -0400, wrote:
> From a kind of backoffice application that plugs into a running JVM I
> want to list all open dialogs, anyone know how to fetch all the open
> dialogs?
> No; java.awt.Frame.getFrames() does not return dialogs..
> Any pointers appreciated.

Dialogs can only be created with a parent Frame. So, to find all the
Dialogs you'll have to search though all the Frames using the
getOwnedWindows to find out the children of a particular Frame.