Java java.awt CardLayout fields, constructors, methods, implement or subclass

Example usage for Java java.awt CardLayout fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.awt CardLayout.

The text is from its open source code.

Constructor

CardLayout()
Creates a new card layout with gaps of size zero.
CardLayout(int hgap, int vgap)
Creates a new card layout with the specified horizontal and vertical gaps.

Method

voidlast(Container parent)
Flips to the last card of the container.
voidnext(Container parent)
Flips to the next card of the specified container.
voidprevious(Container parent)
Flips to the previous card of the specified container.
voidsetHgap(int hgap)
Sets the horizontal gap between components.
voidshow(Container parent, String name)
Flips to the component that was added to this layout with the specified name , using addLayoutComponent .