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
1 This simple layout manager "flows" components into the window. The components can be aligned, and space between them specified by arguments hgap and vgap:
2 setLayout(new FlowLayout(FlowLayout.LEFT, 5, 2));
3 setLayout(new FlowLayout(FlowLayout.CENTER));
4 setLayout(new FlowLayout(FlowLayout.RIGHT));
5 The FlowLayout Manager's strategy includes making each component its default "preferred size".

in Table To:


© 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