Basic HTML version of Foils prepared
19 July 97
Foil 25 Event Sources
From
Overview of JDK Version 1.1 Extensions CPS616 -- Information Track of CPS --
Spring Semester 97
.
by
Nancy J. McCracken
1
In the AWT, the event sources are the Components.
2
For every event X which a source generates, its API includes methods to register event listeners: addXListener() and removeXListener().
3
List of some components and events they generate:
Button ActionEvent (button clicked)
Checkbox ItemEvent (select or deselect item)
Choice ItemEvent
Component ComponentEvent, FocusEvent, KeyEvent, MouseEvent
List ActionEvent (doubleclick item), ItemEvent
MenuItem ActionEvent
Scrollbar AdjustmentEvent (move scrollbar)
TextComponent TextEvent (user changes text)
Window WindowEvent (window opened, closed, etc.)
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 Sun Nov 29 1998