Is there any way to make a window fixed so that the user can't change the window size in java?
The Frame
class (and its child JFrame
class for Swing) there is a setResizable
method which will set whether or not a Frame
can be resized or not.
JFrame myFrame= new JFrame();
myFrame.setResizable(false);
My solution.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With