Frame.ICONIFIED : Frame « java.awt « Java by API






Frame.ICONIFIED

 


import java.awt.Frame;

public class Main {
  public static void main() {

    Frame frame = new Frame();

    frame.setSize(300, 300);
    frame.setVisible(true);

    iconify(frame);
  }

  public static void iconify(Frame frame) {
    int state = frame.getExtendedState();

    // Set the iconified bit
    state |= Frame.ICONIFIED;

    // Iconify the frame
    frame.setExtendedState(state);
  }
}

   
  








Related examples in the same category

1.Frame.MAXIMIZED_BOTH