The flow layout manager arranges components in a row from left to right, starting a new row if no more components fit into a row. Flow layouts are typically used to arrange buttons in a panel.
FlowLayout is part of the standard Java distribution. The API documentation is available here.
Layout manager properties¶
A container with this layout manager has following layout manager properties:
|alignment||The alignment of the layout. Possible values: LEFT, RIGHT, CENTER, LEADING and TRAILING.||CENTER|
|horizontal gap||The horizontal gap between components and between the component and the border of the container.||5|
|vertical gap||The vertical gap between components and between the component and the border of the container.||5|
|align on baseline (Java 6)||Specifies whether components are vertically aligned along their baseline. Components that do not have a baseline are centered.||false|