Window operation notification in Java

480 views Asked by At

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!

2

There are 2 answers

4
duffymo On

Write a WindowListener - this will show you how.

0
Sid 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.