// You can control the current state of the Frame, // but you cannot disable the corresponding user controls. // To control the widgets, use a JInternalFrame. frame.setExtendedState( NORMAL ); frame.setExtendedState( ICONIFIED ); frame.setExtendedState( MAXIMIZED_HORIZ ); frame.setExtendedState( MAXIMIZED_VERT ); frame.setExtendedState( MAXIMIZED_BOTH );