Tu trouveras un exemple fonctionnel dans la documentation d'oracle.
http://docs.oracle.com/javase/tutorial/uiswing/components/tabbedpane.html