The CardLayout manages the component in such a manner that is only one component is visible as time. The CardLayout treats each component as a card.
It is used to creates a card layout with zero vertical & horizontal gaps.
It is used to creates a card layout with a given vertical & horizontal gaps.