import java.awt.Frame;
public class Main {
public static void main(String[] argv) throws Exception {
Frame frame = new Frame();
frame.setSize(300, 300);
frame.setVisible(true);
deiconify(frame);
}
public static void deiconify(Frame frame) {
int state = frame.getExtendedState();
// Clear the iconified bit
state &= ~Frame.ICONIFIED;
// Deiconify the frame
frame.setExtendedState(state);
}
}
|