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
1 The next batch of components generates a different type of event called an ItemEvent (a class in package java.awt.event)
2 The corresponding interface is called ItemListener, which has a single method called itemStateChanged(...)
3 To listen for ItemEvents, a listener must invoke the addItemListener(...) method

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