This program illustrates you how to make a frame non resizable. It means that the disabling the maximize button of the frame.
The setResizable() method has been used to make the frame resizable or not. If you pass the boolean value false to the setResizable() method then the frame will be non-resizable otherwise frame will be resizable. The setResizable() is the method of the Frame class which takes a boolean valued argument (true or false).
Here is the code of the program :
import java.awt.*;
|
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
Ask Questions? Discuss: Making a Frame Non Resizable in Java View All Comments
Post your Comment