JFrame: How to disable window resizing?
You can use a simple call in the constructor under “frame initialization”: setResizable(false); After this call, the window will not be resizable.
You can use a simple call in the constructor under “frame initialization”: setResizable(false); After this call, the window will not be resizable.
This can be done in pure CSS, like so: iframe { height: 300px; width: 300px; resize: both; overflow: auto; } Set the height and width to the minimum size you want, it only seems to grow, not shrink. Live example: https://jsfiddle.net/xpeLja5t/ This technique has good support in all major browsers except IE.