Set the Size of a FrameView programmatically

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(); 


You can leave a response, or trackback from your own site.

Leave a Reply