Check out example codes for "java windowbuilder full screen". It will help you in understanding the concepts better.

Code Example 1

JFrame frame = new JFrame();
frame.setExtendedState(JFrame.MAXIMIZED_BOTH);

Learn ReactJs, React Native from akashmittal.com