File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Windows operations Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Windows operations" Watch "Windows operations" New topic

Windows operations

Ashish Malik
Ranch Hand

Joined: Jul 11, 2010
Posts: 50
I want my Java program to know when a particular program has its window maximized or minimized or may be is running in exclusive full screen mode(most importantly when not). How to go about it?
If its not possible than only if i know that if any program is running in full screen exclusive mode or not!
Stephan van Hulst

Joined: Sep 20, 2010
Posts: 4200

Take a look at Frame.getExtendedState() and GraphicsDevice.getFullScreenWindow().

The mind is a strange and wonderful thing. I'm not sure that it will ever be able to figure itself out, everything else, maybe. From the atom to the universe, everything, except itself.
I agree. Here's the link:
subject: Windows operations
It's not a secret anymore!