Advanced Java Tutorial


Total available pages count: 55
Subject - Java Technologies

Flow Layout

The FlowLayout is used to arrange components in the linear format, one after another in a flow. FlowLayout is the default layout of the panel & applet.
 

Field of FlowLayout:

Public Static final int LEFT
Public Static final int RIGHT
Public Static final int CENTER
Public Static final int LEADING
Public Static final int TRAILING

 

FlowLayout()

It is used to create flow layout with the center alignment & default 5 units of vertical & horizontal gaps.
 

FlowLayout(int align)

It is used to create flow layout with given alignment & default 5 vertical & Horizontal gaps.
 

FlowLayout(int align, int hgap, int vgap)

It is used to create a flow layout with given alignment & vertical & horizontal gap.



Comments