Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Maximizing Jinternal frame

Status
Not open for further replies.

fatcodeguy

Programmer
Feb 25, 2002
281
CA
hi... I'm trying to maximize a JInternalFrame using

try{setMaximum(true);}
catch(java.beans.PropertyVetoException ee){}

but I get a null pointer exception error at (unknownsources)
javax.swing.DefaultDesktopManager.maximizeFrame
javax.swing.plaf.basic.BasicInternalFrameUI.maximizeFrame
javax.swing.plaf.basic.BasicInternalFrameUI$InternalFramePropertyChangeListener.propertyChange(Unknown Source)

Any ideas?, thanks
 
are you trying to maximise within the JInternal frame iteself?

in which case you may need to do the following:

try{this.setMaximum(true);}
catch(java.beans.PropertyVetoException ee){}

otherwise, just reference the frame object by its name

try{yourFrame.setMaximum(true);}
catch(java.beans.PropertyVetoException ee){}

bruce21.jpg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top