Uses of Interface javax.swing.event.PopupMenuListener (Java Platform SE 8 )
Date: 2026-08-19

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

- Packages that use PopupMenuListener
  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.

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

    Methods in javax.swing that return PopupMenuListener
    Modifier and Type | Method and Description
    --- | ---
    `PopupMenuListener[]` | JComboBox.`getPopupMenuListeners()` Returns an array of all the `PopupMenuListener`s added to this JComboBox with addPopupMenuListener().
    `PopupMenuListener[]` | JPopupMenu.`getPopupMenuListeners()` Returns an array of all the `PopupMenuListener`s added to this JMenuItem with addPopupMenuListener().

    Methods in javax.swing with parameters of type PopupMenuListener
    Modifier and Type | Method and Description
    --- | ---
    `void` | JComboBox.`addPopupMenuListener(PopupMenuListener l)` Adds a `PopupMenu` listener which will listen to notification messages from the popup portion of the combo box.
    `void` | JPopupMenu.`addPopupMenuListener(PopupMenuListener l)` Adds a `PopupMenu` listener.
    `void` | JComboBox.`removePopupMenuListener(PopupMenuListener l)` Removes a `PopupMenuListener`.
    `void` | JPopupMenu.`removePopupMenuListener(PopupMenuListener l)` Removes a `PopupMenu` listener.

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