FileDocCategorySizeDatePackage
ItemListener.javaAPI DocJava SE 6 API1211Tue Jun 10 00:25:24 BST 2008java.awt.event

ItemListener

public interface ItemListener implements EventListener
The listener interface for receiving item events. The class that is interested in processing an item event implements this interface. The object created with that class is then registered with a component using the component's addItemListener method. When an item-selection event occurs, the listener object's itemStateChanged method is invoked.
author
Amy Fowler
version
1.20 04/13/06
see
java.awt.ItemSelectable
see
ItemEvent
see
Tutorial: Writing an Item Listener
since
1.1

Fields Summary
Constructors Summary
Methods Summary
public voiditemStateChanged(java.awt.event.ItemEvent e)
Invoked when an item has been selected or deselected by the user. The code written for this method performs the operations that need to occur when an item is selected (or deselected).