How to Use CardLayout (The Java™ Tutorials > Creating a GUI With JFC/Swing > Laying Out Components Within a Container)

I added highlight tags for you this time, don't forget them in the future....