JFrame: How to disable window resizing?
Use setResizable on your JFrame
yourFrame.setResizable(false);
But extending JFrame is generally a bad idea.
This Code May be Help you : [ Both maximizing and preventing resizing on a JFrame ]
frame.setExtendedState(JFrame.MAXIMIZED_BOTH);
frame.setVisible(true);
frame.setResizable(false);
You can use a simple call in the constructor under "frame initialization":
setResizable(false);
After this call, the window will not be resizable.
Simply write one line in the constructor:
setResizable(false);
This will make it impossible to resize the frame.