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!
Window operation notification in Java
480 views Asked by ashish.g At
2
There are 2 answers
0
On
i know its a little late to answer this but have a look at this In Java Swing how do you get a Win32 window handle (hwnd) reference to a window? once you have the window handle/reference you can perform operations on the window. Its definitely possible to do this since Spy++ that comes along with Visual Studio does this.
Write a WindowListener - this will show you how.