Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / March 2005

Tip: Looking for answers? Try searching our database.

FindWindow

Thread view: 
shevek - 10 Mar 2005 13:58 GMT
Hi all,

I need to make a screenshot of a window to find out, if it show a
specific image, I found that I can use the Robot class for that, but
if I don't want to capture the whole screen I need to have the
coordinates of the window I want to capture.

As the window I want to capture is a native window, I need a way to
enumerate all windows on the desktop, find the correct window, (bring
it to the foreground), and capture the screen.

The problem is that I didn't find a way to enumerate the windows on
the screen. Is there something in the AWT or Swing classes?

Regards,
Raymund
Andrey Kuznetsov - 10 Mar 2005 18:32 GMT
> The problem is that I didn't find a way to enumerate the windows on
> the screen. Is there something in the AWT or Swing classes?

no, you should use JNI

Signature

Andrey Kuznetsov
http://uio.dev.java.net Unified I/O for Java
http://reader.imagero.com Java image reader
http://jgui.imagero.com Java GUI components and utilities



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.