I'm not sure where or how you looked, but there's a great tutorial right here: The CardLayout. In fact if you Google "CardLayout Tutorial" it's the first hit.