how to make a frame that keeps its size
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   JD_Schneider
Posted On:   Thursday, May 30, 2002 02:26 PM

I am using a JFrame to hold multiple JPanels that make up an application that acts like a wizard type tool, eg, you can hit next and back, etc. I have a default size set of the panel inside the frame, but when I change the size of the frame then hit next or back, the frame goes back to it original size. I have multiple panels which replace a panel that is in the frame to effectively change to the next screen.


Is there someway to have the frame keep its size once it is resized without reverting back to the old size after changing panels?



thanks, Justin

Re: how to make a frame that keeps its size

Posted By:   SAJEESH_BHASKAR  
Posted On:   Friday, May 31, 2002 05:42 AM

When you click the next button, capture the screen size. When it display the next panel set this size.
About | Sitemap | Contact