card layout

CardLayout as Layout Manager in Java

Submitted by donbermoy on
This tutorial is about the CardLayout as Layout Manager in Java. A CardLayout as a layout manager is used as a container of two or more components where it is represented as a card. Thus, there is only one card is visible at a time, and the container acts as a storage of cards. So, now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of cardLayout.java. 2.