Basic HTML version of Foils prepared March 26 1999

Foil 9 Layouts

From Java Academy:Graphical User Interface NPAC Java Academy February--April 99 -- March 1999. by Nancy McCracken


So far, whenever we "add" a component such as a button or a textfield to an applet, it placed the component in the next available space from left-to-right and from top-to-bottom.
This is actually the default Layout, called FlowLayout.
There are additional Layouts that divide the applet area into sub-areas. We will show in the next pages GridLayout and BorderLayout.
label
label
button
textfield
textfield



© 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 Fri Mar 26 1999