## Uses of Interface
javax.swing.event.ListDataListener

- Packages that use ListDataListener
  Package | Description
  --- | ---
  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.

- - ### Uses of ListDataListener in javax.swing

    Classes in javax.swing that implement ListDataListener
    Modifier and Type | Class and Description
    --- | ---
    `class` | `JComboBox<E>` A component that combines a button or editable field and a drop-down list.
    `protected class` | `JList.AccessibleJList` This class implements accessibility support for the `JList` class.

    Methods in javax.swing that return ListDataListener
    Modifier and Type | Method and Description
    --- | ---
    `ListDataListener[]` | AbstractListModel.`getListDataListeners()` Returns an array of all the list data listeners registered on this `AbstractListModel`.

    Methods in javax.swing with parameters of type ListDataListener
    Modifier and Type | Method and Description
    --- | ---
    `void` | AbstractListModel.`addListDataListener(ListDataListener l)` Adds a listener to the list that's notified each time a change to the data model occurs.
    `void` | ListModel.`addListDataListener(ListDataListener l)` Adds a listener to the list that's notified each time a change to the data model occurs.
    `void` | AbstractListModel.`removeListDataListener(ListDataListener l)` Removes a listener from the list that's notified each time a change to the data model occurs.
    `void` | ListModel.`removeListDataListener(ListDataListener l)` Removes a listener from the list that's notified each time a change to the data model occurs.

  - ### Uses of ListDataListener in javax.swing.plaf.basic

    Classes in javax.swing.plaf.basic that implement ListDataListener
    Modifier and Type | Class and Description
    --- | ---
    `class` | `BasicComboBoxUI.ListDataHandler` This listener watches for changes in the `ComboBoxModel`.
    `class` | `BasicComboPopup.ListDataHandler` As of 1.4, this class is now obsolete, doesn't do anything, and is only included for backwards API compatibility.
    `class` | `BasicListUI.ListDataHandler` The ListDataListener that's added to the JLists model at installUI time, and whenever the JList.model property changes.

    Fields in javax.swing.plaf.basic declared as ListDataListener
    Modifier and Type | Field and Description
    --- | ---
    `protected ListDataListener` | BasicListUI.`listDataListener`
    `protected ListDataListener` | BasicComboPopup.`listDataListener` This protected field is implementation specific.
    `protected ListDataListener` | BasicComboBoxUI.`listDataListener` This protected field is implementation specific.

    Methods in javax.swing.plaf.basic that return ListDataListener
    Modifier and Type | Method and Description
    --- | ---
    `protected ListDataListener` | BasicListUI.`createListDataListener()` Creates an instance of ListDataListener that's added to the JLists by model as needed.
    `protected ListDataListener` | BasicComboPopup.`createListDataListener()` Creates a list data listener which will be added to the `ComboBoxModel`.
    `protected ListDataListener` | BasicComboBoxUI.`createListDataListener()` Creates a list data listener which will be added to the `ComboBoxModel`.

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, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.