You can use a JButton to perform the actions on the JFrame. This is also a tutorial for JButton with ActionListener.
setOpacity(0.7f): To just set the Opacity of the frame. It is optional.
NORMAL: Set the frame to the normal state i.e. it's original state.
MAXIMIZED_BOTH: Make the frame maximized i.e. spread it to the full screen.
ICONIFIED: Make the frame be at the task bar.
dispose(): Dispose the frame.
Use JButton to Maximize/Minimize/Close JFrame |
setOpacity(0.7f): To just set the Opacity of the frame. It is optional.
NORMAL: Set the frame to the normal state i.e. it's original state.
MAXIMIZED_BOTH: Make the frame maximized i.e. spread it to the full screen.
ICONIFIED: Make the frame be at the task bar.
dispose(): Dispose the frame.
No comments:
Post a Comment