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?