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