I'm the Considerator.
You can create each JPanel object separately, and add components to it, and you can change JPanel objects in one JFrame with setContentPane( paneObject ), after which it is good to call revalidate.
I advice you to read about panes in Swing Tutorial, like for example,
http://download.oracle.com/docs/cd/E17409_01/javase/tutorial/uiswing/components/rootpane.html
How to use RootPanes
But I think CardLayout solves the problem, no?