Check out example codes for "java fullscreen jframe". It will help you in understanding the concepts better.

Code Example 1

frame.setExtendedState(JFrame.MAXIMIZED_BOTH); 
frame.setUndecorated(true);
frame.setVisible(true);

Code Example 2

frame.setExtendedState(JFrame.MAXIMIZED_BOTH);

Learn ReactJs, React Native from akashmittal.com