disable resizing swing code example
Example: disable resizing swing
frame.setResizable(false);//'frame' is the JFrame to which you are adding the component
frame.setResizable(false);//'frame' is the JFrame to which you are adding the component