Basic HTML version of Foils prepared 13 October 97

Foil 47 Brief Description of LayoutManagers

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


1 FlowLayout is a one dimensional layout where components are "flowed" into panel in order they were defined. When a row is full up, it is wrapped onto next row
2 BorderLayout arranges the components into five areas called North, South, East, West and Center.
3 GridLayout is a two dimensional layout where you define a N by M set of cells and again the components are assigned sequentially to cells starting at top left hand corner -- one component is in each cell. The cells are the same size.
4 CardLayout lays out in time not space and each card (Displayed at one time) can be laid out with one of spatial layout schemes above
5 GridBagLayout uses a class GridBagConstraints to customize positioning of individual components in one or more cells

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