public void setLayeredPane (JLayeredPane layered)

Sets the layered pane for the root pane. The layered pane typically holds a content pane and an optional JMenuBar.

Parameters:
layered    the JLayeredPane to use

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