Basic HTML version of Foils prepared 13 October 97

Foil 49 FlowLayouts in detail

From Java Tutorial, July 1, 1996 CSC499(JSU) CPS406/606 -- Fall Semester 97. by Nancy J. McCracken,Geoffrey C. Fox

API for class FlowLayout
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".



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Wed Apr 1 1998