Force Window to minimize ?
Posted on 1997-11-25
I'm trying to minimize(iconified) window from a button, is it possible ?
I create a frame add button to the frame
I add actionListener to the button
On the actionPerformed I wrote the following:
I try to write despatchEvent(new
in spite of nothing happened .
I tried this without add the WindowListener to the frame , hopping the
event will catch by the system.
When I add the WindowListener with my WindowAdapter that implement the
public void windowIconified(WindowEvent evt)
Window window = (Window)evt.getSource();
the window hide itself.
At the end my question is :
Can I force "windowIconified " event from other component rather then the
user InputEvent , that will minimize my window ??
I'm using Jdk1.1.4 on Win NT4.0.