In this section, you will learn about the Iconifying and maximizing a frame in java.In this section, you will learn about the Iconifying and maximizing a frame in java.
In this section, you will learn about the Iconifying and maximizing a frame in java. Iconifying means to show a frame in minimized form. This program displays a frame in both forms. By default the frame will be in the minimized form. Following is the image of the frame which has to be minimized or maximized:
The setWindowDecorationStyle() is the method of the JRootPane class which sets the window decoration type using the constant property PLAIN_DIALOG of the JRootPane class.
It sets the state of window to minimize and maximize. It uses the constant field of the JFrame class.
This state is used to maximize the frame horizontal and vertical.
This state checks whether the frame is minimized or not.
Here is the code of program: