This post originated from an RSS feed registered with Java Buzz
by News Manager.
Original Post: Using the CardLayout
Feed Title: Focus on Java
Feed URL: http://z.about.com/6/g/java/b/index.xml
Feed Description: java.about.com's Focus on Java
I've had a couple of questions recently on the CardLayout layout manager
so it seems a good time to have a look at how the CardLayout
can be used.
It's perfect if you want to create an application that
works like a set of tabs. You can place a number of components into a few
different JPanels and then switch between those panels using the CardLayout
layout manager. If you want to see it in action then have a look at the CardLayout
example program.