CardLayout question

I have a card layout for my GUI and I have 2 jpanels with the first one having numerous text fields and the second one has radio buttons. Both of them also have next, previous, and cancel buttons. What i want to do is when I press the next button, I want the second panel to display.The first panel is called card1 and the second one is card2. Any help would be great.

[375 byte] By [gabel3469a] at [2007-11-27 6:09:27]
# 1
In the actionPerformed method for the first next button, tell the cardlayout to show the second panel. In the actionPerformed method for the second previous button, tell the cardlayout to show the first panel.
hunter9000a at 2007-7-12 17:13:20 > top of Java-index,Java Essentials,Java Programming...