Basic HTML version of Foils prepared 13 October 97

Foil 30 Basic AWT Components

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


1 For each basic component, one can create one or more instances of the component type and then use one of the "add" methods to place it into a Container such as an applet window.
2 For now, we assume that components are added to the window in order from left to right and top to bottom as they fit. (This is actually the default FlowLayout Manager).
3 Also for each component, there will be other methods:
  • some affect the properties or appearance of the component, such as setBackground for Buttons.
  • others may dynamically obtain or change information about the component, such as getText for TextFields, which may return whatever String the user has typed into the TextField.

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