title: How to run JFrame maximized in JAVA?
body: <p>I'm new to JAVA.</p>
  
  <p>I need to run a JFrame named <code>MainFrame</code> in maximized mode.</p>
  
  <p>How can I do it?</p>
  
  <pre><code>public class MainFrame extends javax.swing.JFrame {
  
  /**
   * Creates new form MainFrame
   */
  public MainFrame() {
      initComponents();
  }
  </code></pre>