# Uses of Class
javax.swing.JRootPane

Packages that use JRootPane
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.

- ## Uses of JRootPane in javax.swing

  Fields in javax.swing declared as JRootPane
  Modifier and Type
  Field
  Description
  `protected JRootPane`
  JDialog.`rootPane`
  The `JRootPane` instance that manages the `contentPane`.
  `protected JRootPane`
  JFrame.`rootPane`
  The `JRootPane` instance that manages the `contentPane` and optional `menuBar` for this frame, as well as the `glassPane`.
  `protected JRootPane`
  JInternalFrame.`rootPane`
  The `JRootPane` instance that manages the content pane and optional menu bar for this internal frame, as well as the glass pane.
  `protected JRootPane`
  JWindow.`rootPane`
  The `JRootPane` instance that manages the `contentPane` and optional `menuBar` for this frame, as well as the `glassPane`.
  Methods in javax.swing that return JRootPane
  Modifier and Type
  Method
  Description
  `protected JRootPane`
  JDialog.`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`
  JInternalFrame.`createRootPane()`
  Called by the constructor to set up the `JRootPane`.
  `protected JRootPane`
  JWindow.`createRootPane()`
  Called by the constructor methods to create the default `rootPane`.
  `JRootPane`
  JComponent.`getRootPane()`
  Returns the `JRootPane` ancestor for this component.
  `JRootPane`
  JDialog.`getRootPane()`
  Returns the `rootPane` object for this dialog.
  `JRootPane`
  JFrame.`getRootPane()`
  Returns the `rootPane` object for this frame.
  `JRootPane`
  JInternalFrame.`getRootPane()`
  Returns the `rootPane` object for this internal frame.
  `JRootPane`
  JWindow.`getRootPane()`
  Returns the `rootPane` object for this window.
  `JRootPane`
  RootPaneContainer.`getRootPane()`
  Return this component's single JRootPane child.
  `static JRootPane`
  SwingUtilities.`getRootPane(Component c)`
  If c is a JRootPane descendant return its JRootPane ancestor.
  Methods in javax.swing with parameters of type JRootPane
  Modifier and Type
  Method
  Description
  `protected void`
  JDialog.`setRootPane(JRootPane root)`
  Sets the `rootPane` property.
  `protected void`
  JFrame.`setRootPane(JRootPane root)`
  Sets the `rootPane` property.
  `protected void`
  JInternalFrame.`setRootPane(JRootPane root)`
  Sets the `rootPane` property for this `JInternalFrame`.
  `protected void`
  JWindow.`setRootPane(JRootPane root)`
  Sets the new `rootPane` object for this window.

- ## Uses of JRootPane in javax.swing.plaf.basic

  Methods in javax.swing.plaf.basic with parameters of type JRootPane
  Modifier and Type
  Method
  Description
  `protected void`
  BasicRootPaneUI.`installComponents(JRootPane root)`
  Installs components.
  `protected void`
  BasicRootPaneUI.`installDefaults(JRootPane c)`
  Installs default properties.
  `protected void`
  BasicRootPaneUI.`installKeyboardActions(JRootPane root)`
  Registers keyboard actions.
  `protected void`
  BasicRootPaneUI.`installListeners(JRootPane root)`
  Registers listeners.
  `protected void`
  BasicRootPaneUI.`uninstallComponents(JRootPane root)`
  Unregisters components.
  `protected void`
  BasicRootPaneUI.`uninstallDefaults(JRootPane root)`
  Uninstalls default properties.
  `protected void`
  BasicRootPaneUI.`uninstallKeyboardActions(JRootPane root)`
  Unregisters keyboard actions.
  `protected void`
  BasicRootPaneUI.`uninstallListeners(JRootPane root)`
  Unregisters listeners.