how to minimize a window in java swing code example Example: how to minimize jframe in java frame.setState(Frame.ICONIFIED);