-
October 24th, 2010, 10:33 AM
#1
maximise and minimise event
hi,
i want to detect maximise and minimise event in java.....
like if internet explorer is minimised or maximised or closed i want to display a message or do something........
similarly for other windows i want to detect whether they are maximised or minimised
-
October 25th, 2010, 03:57 AM
#2
Re: maximise and minimise event
add a window listener to your window and implement windowIconified method
-
October 25th, 2010, 05:21 AM
#3
Re: maximise and minimise event
You can only use window listeners to detect changes in windows created by the JVM your detection code is running in. If you want to detect changes in other windows running on your machine you would need to interact with the OS which languages such as C++ are better suited to do. You can interact with the OS in Java but only through process or JNI calls to native code.
-
October 25th, 2010, 05:48 AM
#4
Re: maximise and minimise event
My bad, I didn't read OP's question carefully. I guess the options then are to use JNI to interface with Windows API or look for some library that already does this for you. Sorry I can't be of more help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|