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