Check out example codes for "jframe maximized at startup". It will help you in understanding the concepts better.

Code Example 1

public MainFrame() {
    initComponents();
    setExtendedState(java.awt.Frame.MAXIMIZED_BOTH);
}

Learn ReactJs, React Native from akashmittal.com