CardLayout Demo Applet
The source.