title: JFrame Resizing in Desktop Application - NetBeans
body: <p>I'm developing Java Desktop Application in NetBeans IDE. I want to show the login screen in  <code>JFrame</code> with small size. Then after getting login i want to extend <code>JFrame</code> to full screen with other panels.The problem is its showing once properly and from the next time it used to show the login screen with full screen.How can i avoid it? I'm placing different panels on the same frame. </p>
  
  <p>While login</p>
  
  <pre><code>this.getFrame().setExtendedState(Frame.NORMAL);
  this.getFrame().setSize(360, 233);
  this.getFrame().setResizable(false);
  </code></pre>
  
  <p>After login</p>
  
  <p><code>this.getFrame().setExtendedState(Frame.MAXIMIZED_BOTH);</code></p>