jframe resizable false code example
Example 1: disable resizing swing
frame.setResizable(false);//'frame' is the JFrame to which you are adding the component
Example 2: how to make a window not resizeable in JFrame
setResizable(false);
frame.setResizable(false);//'frame' is the JFrame to which you are adding the component
setResizable(false);