public abstract void setLayeredPane (JLayeredPane layeredPane)

A Container that manages the contentPane and in some cases a menu bar. The layeredPane can be used by descendants that want to add a child to the RootPaneContainer that isn't layout managed. For example an internal dialog or a drag and drop effect component.

The layeredPane may not be null.

Generally implemented with

    getRootPane().setLayeredPane(layeredPane);

Parameters:
layeredPane    the layered pane

Exceptions:
java.awt.IllegalComponentStateException    (a runtime exception) if the layered pane parameter is null

See also:
getLayeredPane, JRootPane.getLayeredPane