Basic HTML version of Foils prepared 13 October 97

Foil 39 Some Further AWT Components -- typical subunits of panels

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

The remaining basic Components for Foil 39
1 Choice is a class that gives a menu where you choose from various items, also sometimes called a drop-down list. Selecting an element of the menu generates an ItemEvent.
2 List is another child of Component that is similar in use to Choice but gives a fixed size list which can be scrolled and where you can select one or more entries. Lists can generate both ItemEvents if the user selects (clicks once) an item, and ActionEvents if the user double-clicks an item.
3 Scrollbar is a class that defines a horizontal or vertical scrollbar. Note this is distinct from scrollbars that come with TextArea and List. It generates AdjustmentEvents. The AdjustmentListener must have a method adjustmentValueChanged.

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