I'm looking to create a java app with a gui. I would like to have several "pages" that will fill in a central area and easily swap them out for another.

I was trying to use a single JFrame as the main window, and then have several panels that would encompass the entire JFrame and have separate functions and all. I would want the Main Jframe to retain its size and position on screen when switching from one panel to another as well. Any one able to offer help on this?