Basic HTML version of Foils prepared 13 July 98

Foil 84 Item Events and Listeners

From Java Academy II:Intermediate Java NPAC/ECS Java Academy -- February to April 98. by Tom Scavo

Item Events and Listeners for Foil 84
The next batch of components generates a different type of event called an ItemEvent (a class in package java.awt.event)
The corresponding interface is called ItemListener, which has a single method called itemStateChanged(...)
To listen for ItemEvents, a listener must invoke the addItemListener(...) method



© 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 Sat Nov 28 1998