In this section, you will learn how to set the bounds for a maximized frame. This means to fix the size for the frame after maximizing it.
This program sets the bounds for the maximized frame using setMaximizedBounds() method of the JFrame class. There has been shown the images below for the illustration:
This is the method of the JFrame class sets the bounds for a maximized frame. The method takes the object of Rectangle class to set the size of frame. Constructor of the Ractangle class takes four argument in sequence: row of the screen, column of the screen, width of the frame and last is the height of the frame.
Here is the code of the program:
Rs. 20,000 US$ 300
Today: Rs. 10,000 US$150
Course Duration: 30 hrs
Posted on: April 14, 2007 If you enjoyed this post then why not add us on Google+? Add us to your Circles