Reputation: 3600
I am testing some code using JWindow and that hide jframe, so I have to create minimize, maximize and close buttons for user friendly. How can I set state to frame when click on created buttons.
Upvotes: 1
Views: 130
Reputation: 95968
See JFrame#setState
. You can do:
myFrame.setState(Frame.ICONIFIED)
As the implementation of a listener of the buttons.
Upvotes: 4