| Package | Description | 
|---|---|
| java.awt | Contains all of the classes for creating user
interfaces and for painting graphics and images. | 
| javax.swing | Provides a set of "lightweight"
(all-Java language) components that,
to the maximum degree possible, work the same on all platforms. | 
| javax.swing.plaf.basic | Provides user interface objects built according to the
Basic look and feel. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | AWTEventMulticasterAWTEventMulticasterimplements efficient and thread-safe multi-cast
 event dispatching for the AWT events defined in thejava.awt.eventpackage. | 
| protected class  | Checkbox.AccessibleAWTCheckboxThis class implements accessibility support for the
  Checkboxclass. | 
| protected class  | List.AccessibleAWTListThis class implements accessibility support for the
  Listclass. | 
| Modifier and Type | Method and Description | 
|---|---|
| static ItemListener | AWTEventMulticaster. add(ItemListener a,
   ItemListener b)Adds item-listener-a with item-listener-b and
 returns the resulting multicast listener. | 
| ItemListener[] | CheckboxMenuItem. getItemListeners()Returns an array of all the item listeners
 registered on this checkbox menuitem. | 
| ItemListener[] | Choice. getItemListeners()Returns an array of all the item listeners
 registered on this choice. | 
| ItemListener[] | Checkbox. getItemListeners()Returns an array of all the item listeners
 registered on this checkbox. | 
| ItemListener[] | List. getItemListeners()Returns an array of all the item listeners
 registered on this list. | 
| static ItemListener | AWTEventMulticaster. remove(ItemListener l,
      ItemListener oldl)Removes the old item-listener from item-listener-l and
 returns the resulting multicast listener. | 
| Modifier and Type | Method and Description | 
|---|---|
| static ItemListener | AWTEventMulticaster. add(ItemListener a,
   ItemListener b)Adds item-listener-a with item-listener-b and
 returns the resulting multicast listener. | 
| void | CheckboxMenuItem. addItemListener(ItemListener l)Adds the specified item listener to receive item events from
 this check box menu item. | 
| void | Choice. addItemListener(ItemListener l)Adds the specified item listener to receive item events from
 this  Choicemenu. | 
| void | Checkbox. addItemListener(ItemListener l)Adds the specified item listener to receive item events from
 this check box. | 
| void | ItemSelectable. addItemListener(ItemListener l)Adds a listener to receive item events when the state of an item is
 changed by the user. | 
| void | List. addItemListener(ItemListener l)Adds the specified item listener to receive item events from
 this list. | 
| static ItemListener | AWTEventMulticaster. remove(ItemListener l,
      ItemListener oldl)Removes the old item-listener from item-listener-l and
 returns the resulting multicast listener. | 
| void | CheckboxMenuItem. removeItemListener(ItemListener l)Removes the specified item listener so that it no longer receives
 item events from this check box menu item. | 
| void | Choice. removeItemListener(ItemListener l)Removes the specified item listener so that it no longer receives
 item events from this  Choicemenu. | 
| void | Checkbox. removeItemListener(ItemListener l)Removes the specified item listener so that the item listener
 no longer receives item events from this check box. | 
| void | ItemSelectable. removeItemListener(ItemListener l)Removes an item listener. | 
| void | List. removeItemListener(ItemListener l)Removes the specified item listener so that it no longer
 receives item events from this list. | 
| Modifier and Type | Class and Description | 
|---|---|
| protected class  | DefaultCellEditor.EditorDelegateThe protected  EditorDelegateclass. | 
| protected class  | JCheckBox.AccessibleJCheckBoxThis class implements accessibility support for the
  JCheckBoxclass. | 
| protected class  | JRadioButton.AccessibleJRadioButtonThis class implements accessibility support for the
  JRadioButtonclass. | 
| protected class  | JToggleButton.AccessibleJToggleButtonThis class implements accessibility support for the
  JToggleButtonclass. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected ItemListener | AbstractButton. itemListenerThe button model's  ItemListener. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected ItemListener | AbstractButton. createItemListener() | 
| ItemListener[] | DefaultButtonModel. getItemListeners()Returns an array of all the item listeners
 registered on this  DefaultButtonModel. | 
| ItemListener[] | JComboBox. getItemListeners()Returns an array of all the  ItemListeners added
 to this JComboBox with addItemListener(). | 
| ItemListener[] | AbstractButton. getItemListeners()Returns an array of all the  ItemListeners added
 to this AbstractButton with addItemListener(). | 
| Modifier and Type | Method and Description | 
|---|---|
| void | DefaultButtonModel. addItemListener(ItemListener l)Adds an  ItemListenerto the model. | 
| void | JComboBox. addItemListener(ItemListener aListener)Adds an  ItemListener. | 
| void | ButtonModel. addItemListener(ItemListener l)Adds an  ItemListenerto the model. | 
| void | AbstractButton. addItemListener(ItemListener l)Adds an  ItemListenerto thecheckbox. | 
| void | DefaultButtonModel. removeItemListener(ItemListener l)Removes an  ItemListenerfrom the model. | 
| void | JComboBox. removeItemListener(ItemListener aListener)Removes an  ItemListener. | 
| void | ButtonModel. removeItemListener(ItemListener l)Removes an  ItemListenerfrom the model. | 
| void | AbstractButton. removeItemListener(ItemListener l)Removes an  ItemListenerfrom the button. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | BasicComboBoxUI.ItemHandlerThis listener watches for changes to the selection in the
 combo box. | 
| protected class  | BasicComboPopup.ItemHandlerThis listener watches for changes to the selection in the
 combo box. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected ItemListener | BasicComboPopup. itemListenerThis protected field is implementation specific. | 
| protected ItemListener | BasicComboBoxUI. itemListenerThis protected field is implementation specific. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected ItemListener | BasicComboPopup. createItemListener()Creates an  ItemListenerwhich will be added to the
 combo box. | 
| protected ItemListener | BasicComboBoxUI. createItemListener()Creates an  ItemListenerwhich will be added to the
 combo box. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.