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

If that doesn't help, boil your problem down to an SSCCE (that's a...