Uses of Class javax.swing.Popup (Java Platform SE 8 )
Date: 2026-07-22

## Uses of Class
javax.swing.Popup

- Packages that use Popup
  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 | Provides one interface and many abstract classes that Swing uses to provide its pluggable look-and-feel capabilities.
  javax.swing.plaf.multi | Provides user interface objects that combine two or more look and feels.

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

    Methods in javax.swing that return Popup
    Modifier and Type | Method and Description
    --- | ---
    `Popup` | PopupFactory.`getPopup(Component owner, Component contents, int x, int y)` Creates a `Popup` for the Component `owner` containing the Component `contents`.

  - ### Uses of Popup in javax.swing.plaf

    Methods in javax.swing.plaf that return Popup
    Modifier and Type | Method and Description
    --- | ---
    `Popup` | PopupMenuUI.`getPopup(JPopupMenu popup, int x, int y)` Returns the `Popup` that will be responsible for displaying the `JPopupMenu`.

  - ### Uses of Popup in javax.swing.plaf.multi

    Methods in javax.swing.plaf.multi that return Popup
    Modifier and Type | Method and Description
    --- | ---
    `Popup` | MultiPopupMenuUI.`getPopup(JPopupMenu a, int b, int c)` Invokes the `getPopup` method on each UI handled by this object.

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.