FlowLayouts in detail
This simple layout manager "flows" components into the window. The components can be aligned, and space between them specified by arguments hgap and vgap:
- setLayout(new FlowLayout(FlowLayout.LEFT, 5, 2));setLayout(new FlowLayout(FlowLayout.CENTER));
- setLayout(new FlowLayout(FlowLayout.RIGHT));
The FlowLayout Manager's strategy includes making each component its default "preferred size".