Uses of Class javax.swing.JLayeredPane (Java Platform SE 8 )
Date: 2026-08-19

## Uses of Class
javax.swing.JLayeredPane

- Packages that use JLayeredPane
  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 JLayeredPane in javax.swing

    Subclasses of JLayeredPane in javax.swing
    Modifier and Type | Class and Description
    --- | ---
    `class` | `JDesktopPane` A container used to create a multiple-document interface or a virtual desktop.

    Fields in javax.swing declared as JLayeredPane
    Modifier and Type | Field and Description
    --- | ---
    `protected JLayeredPane` | JRootPane.`layeredPane` The layered pane that manages the menu bar and content pane.

    Methods in javax.swing that return JLayeredPane
    Modifier and Type | Method and Description
    --- | ---
    `protected JLayeredPane` | JRootPane.`createLayeredPane()` Called by the constructor methods to create the default `layeredPane`.
    `JLayeredPane` | JApplet.`getLayeredPane()` Returns the layeredPane object for this applet.
    `JLayeredPane` | JFrame.`getLayeredPane()` Returns the `layeredPane` object for this frame.
    `JLayeredPane` | JWindow.`getLayeredPane()` Returns the `layeredPane` object for this window.
    `JLayeredPane` | JDialog.`getLayeredPane()` Returns the `layeredPane` object for this dialog.
    `JLayeredPane` | JRootPane.`getLayeredPane()` Gets the layered pane used by the root pane.
    `JLayeredPane` | RootPaneContainer.`getLayeredPane()` Returns the layeredPane.
    `JLayeredPane` | JInternalFrame.`getLayeredPane()` Returns the layered pane for this internal frame.
    `static JLayeredPane` | JLayeredPane.`getLayeredPaneAbove(Component c)` Convenience method that returns the first JLayeredPane which contains the specified component.

    Methods in javax.swing with parameters of type JLayeredPane
    Modifier and Type | Method and Description
    --- | ---
    `void` | JApplet.`setLayeredPane(JLayeredPane layeredPane)` Sets the layeredPane property.
    `void` | JFrame.`setLayeredPane(JLayeredPane layeredPane)` Sets the `layeredPane` property.
    `void` | JWindow.`setLayeredPane(JLayeredPane layeredPane)` Sets the `layeredPane` property.
    `void` | JDialog.`setLayeredPane(JLayeredPane layeredPane)` Sets the `layeredPane` property.
    `void` | JRootPane.`setLayeredPane(JLayeredPane layered)` Sets the layered pane for the root pane.
    `void` | RootPaneContainer.`setLayeredPane(JLayeredPane layeredPane)` A Container that manages the contentPane and in some cases a menu bar.
    `void` | JInternalFrame.`setLayeredPane(JLayeredPane layered)` Sets this `JInternalFrame`'s `layeredPane` property.

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.