Making a JFrame Non-Resizable
By default, a frame can be resized by the user. Use
setResizable(false) to freeze a frame's size.
JFrame frame = new JFrame();
frame.setResizable(false);
// Get the current resizable state
boolean resizable = frame.isResizable();
Post a comment