Look at the code on line 57 and see what it is trying to do.
Then look at the code in the tutorial to see how it is done there.
Type: Posts; User: Norm
Look at the code on line 57 and see what it is trying to do.
Then look at the code in the tutorial to see how it is done there.
I'd rather you learn how to solve your programming problems, so I'll let you read the tutorial and work on your problem.
Does the code give any errors when executed?
Did you read the tutorial at the link I posted? It has examples of using CardLayout.
Read the API doc for the class and method for an explanation of the methods. It should all be there
Have you seen the tutorial? It has an example you could copy and work with.
How to Use CardLayout (The Java™ Tutorials > Creating a GUI With JFC/Swing > Laying Out Components Within a Container)
...
Please explain what the problem is. If there are errors copy the full text of the message and post it here.
Please edit your post and wrap your code with
<YOUR CODE HERE>
to get...