Check out example codes for "java swing make window not resizable". It will help you in understanding the concepts better.

Code Example 1

JFrame frame = new JFrame();

frame.setResizable(false);

Learn ReactJs, React Native from akashmittal.com