I had made one application in java-swing,
Now what i am getting problem is,
i want to minimize my jframe when it is deactivate and then to maximize i want to activate that window.
So for maximize, i want to activate any jframe using java code.
So how to activate and deactivate any jframe, so that i can do something on window listeners?
thanks in advance.
The following works:
Modified from http://www.javacoffeebreak.com/faq/faq0055.html
To focus the window you can do
frame.requestFocus();.