dcsimg

How can I iconify/deiconify my Frame/JFrame?

John Zukowski

The setState() method introduced to Java 1.2 provides support for iconifying and deiconifying.

frame.setState(Frame.ICONIFIED);
frame.setState(Frame.NORMAL);