How do I minimize a Java application window?

Sandip Chitale

Assumming you are using a java.awt.Frame or a subclass (including Swing's JFrame) as the Application Window, JDK1.2's java.awt.Frame class has the following method

public void setState(int state)
  Sets the state of this frame.
    state - Frame.ICONIFIED if this frame is in iconic state;
            Frame.NORMAL if this frame is in normal state.

Use the Frame.ICONIFIED value to minimize it.