Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Enumerating open windows






email@hidden
Sent by: java-dev-bounces+jferry=email@hidden

07/26/2005 01:06 PM

Please respond to
email@hidden

To
email@hidden
cc
Subject



If this is for testing and you can use the JFCUnit frame work which has several methods to do exactly what you want.

Specifically the WindowMonitor class has a static method WindowMonitor.getWindows() which will return a java.awt.Window[] this will include all windows including ones that have not been set visible so you may have to filter the array for just the visible ones.

Hope this helps
Jim Ferry

------------------------------

Message: 7
Date: Tue, 26 Jul 2005 14:53:48 -0400
From: Elliotte Harold <email@hidden>
Subject: Enumerating open windows
To: JavaDev <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset=UTF-8; format=flowed

Anyone know a straightforward or sneaky way to get list of all the
currently open windows? I'm looking for something generic that could be
used for testing purposes without necessarily having to maintain a list
of every window and dialog I've opened inside my application. For my
purposes this does need to be cross-platform.

--
Elliotte Rusty Harold  email@hidden
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim


------------------------------

_______________________________________________
Java-dev mailing list
email@hidden
http://lists.apple.com/mailman/listinfo/java-dev

End of Java-dev Digest, Vol 2, Issue 378
****************************************

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.