Basic HTML version of Foils prepared Sept 21 1998

Foil 49 FlowLayouts in detail

From Java Tutorial 98- 3: Graphics and the Abstract Windowing Toolkit NAVO Tutorial -- Sept 23 1998. by Geoffrey C. Fox, Nancy McCracken

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:
  • setLayout(new FlowLayout(FlowLayout.LEFT, 5, 2)); setLayout(new FlowLayout(FlowLayout.CENTER));
  • setLayout(new FlowLayout(FlowLayout.RIGHT));
2 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 Sat Nov 28 1998