| 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.basic | Provides user interface objects built according to the
Basic look and feel. | 
| javax.swing.plaf.synth | 
      Synth is a skinnable look and feel in which all painting is
      delegated. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected JRootPane | JApplet. rootPane | 
| protected JRootPane | JFrame. rootPaneThe  JRootPaneinstance that manages thecontentPaneand optionalmenuBarfor this frame, as well as theglassPane. | 
| protected JRootPane | JWindow. rootPaneThe  JRootPaneinstance that manages thecontentPaneand optionalmenuBarfor this frame, as well as theglassPane. | 
| protected JRootPane | JDialog. rootPane | 
| protected JRootPane | JInternalFrame. rootPaneThe  JRootPaneinstance that manages the
 content pane
 and optional menu bar for this internal frame, as well as the
 glass pane. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected JRootPane | JApplet. createRootPane()Called by the constructor methods to create the default rootPane. | 
| protected JRootPane | JFrame. createRootPane()Called by the constructor methods to create the default
  rootPane. | 
| protected JRootPane | JWindow. createRootPane()Called by the constructor methods to create the default
  rootPane. | 
| protected JRootPane | JDialog. createRootPane()Called by the constructor methods to create the default
  rootPane. | 
| protected JRootPane | JInternalFrame. createRootPane()Called by the constructor to set up the  JRootPane. | 
| JRootPane | JApplet. getRootPane()Returns the rootPane object for this applet. | 
| JRootPane | JFrame. getRootPane()Returns the  rootPaneobject for this frame. | 
| JRootPane | JWindow. getRootPane()Returns the  rootPaneobject for this window. | 
| JRootPane | JDialog. getRootPane()Returns the  rootPaneobject for this dialog. | 
| JRootPane | RootPaneContainer. getRootPane()Return this component's single JRootPane child. | 
| JRootPane | JInternalFrame. getRootPane()Returns the  rootPaneobject for this internal frame. | 
| JRootPane | JComponent. getRootPane()Returns the  JRootPaneancestor for this component. | 
| static JRootPane | SwingUtilities. getRootPane(Component c)If c is a JRootPane descendant return its JRootPane ancestor. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | JApplet. setRootPane(JRootPane root)Sets the rootPane property. | 
| protected void | JFrame. setRootPane(JRootPane root)Sets the  rootPaneproperty. | 
| protected void | JWindow. setRootPane(JRootPane root)Sets the new  rootPaneobject for this window. | 
| protected void | JDialog. setRootPane(JRootPane root)Sets the  rootPaneproperty. | 
| protected void | JInternalFrame. setRootPane(JRootPane root)Sets the  rootPaneproperty
 for thisJInternalFrame. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | BasicRootPaneUI. installComponents(JRootPane root) | 
| protected void | BasicRootPaneUI. installDefaults(JRootPane c) | 
| protected void | BasicRootPaneUI. installKeyboardActions(JRootPane root) | 
| protected void | BasicRootPaneUI. installListeners(JRootPane root) | 
| protected void | BasicRootPaneUI. uninstallComponents(JRootPane root) | 
| protected void | BasicRootPaneUI. uninstallDefaults(JRootPane root) | 
| protected void | BasicRootPaneUI. uninstallKeyboardActions(JRootPane root) | 
| protected void | BasicRootPaneUI. uninstallListeners(JRootPane root) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | SynthRootPaneUI. installDefaults(JRootPane c) | 
| protected void | SynthRootPaneUI. uninstallDefaults(JRootPane root) | 
 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, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.