This code snip creates a jFrame object and sets it to maximum dimensions before setting the startup frame equal to it.  I tried the direct one liner method but this did not work.  It thwarted me time after time.

 


    
super(app);     
JFrame frame = new JFrame();     
frame.pack(); 
frame.setExtendedState(JFrame.MAXIMIZED_BOTH); 
frame.setResizable(false);     
this.setFrame(frame);
initComponents(); 


0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *