Java javax.swing JRootPane fields, constructors, methods, implement or subclass

Example usage for Java javax.swing JRootPane fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.swing JRootPane.

The text is from its open source code.

Subclass

javax.swing.JRootPane has subclasses.
Click this link to see all its subclasses.

Field

intFRAME
Constant used for the windowDecorationStyle property.
intPLAIN_DIALOG
Constant used for the windowDecorationStyle property.
intERROR_DIALOG
Constant used for the windowDecorationStyle property.
intFILE_CHOOSER_DIALOG
Constant used for the windowDecorationStyle property.

Constructor

JRootPane()
Creates a JRootPane, setting up its glassPane, layeredPane, and contentPane.

Method

Componentadd(String name, Component comp)
Adds the specified component to this container.
ActionMapgetActionMap()
Returns the ActionMap used to determine what Action to fire for particular KeyStroke binding.
ObjectgetClientProperty(Object key)
Returns the value of the property with the specified key.
ComponentgetComponent(int n)
Gets the nth component in this container.
ContainergetContentPane()
Returns the content pane -- the container that holds the components parented by the root pane.
ComponentgetGlassPane()
Returns the current glass pane for this JRootPane.
InputMapgetInputMap(int condition)
Returns the InputMap that is used during condition.
JLayeredPanegetLayeredPane()
Gets the layered pane used by the root pane.
ToolkitgetToolkit()
Gets the toolkit of this component.
voidputClientProperty(Object key, Object value)
Adds an arbitrary key/value "client property" to this component.
voidregisterKeyboardAction(ActionListener anAction, KeyStroke aKeyStroke, int aCondition)
This method is now obsolete, please use a combination of getActionMap() and getInputMap() for similar behavior.
voidsetCursor(Cursor cursor)
Sets the cursor image to the specified cursor.
voidsetDefaultButton(JButton defaultButton)
Sets the defaultButton property, which determines the current default button for this JRootPane.
voidsetGlassPane(Component glass)
Sets a specified Component to be the glass pane for this root pane.
voidsetJMenuBar(JMenuBar menu)
Adds or changes the menu bar used in the layered pane.
voidsetLayout(LayoutManager mgr)
Sets the layout manager for this container.
voidvalidate()
Validates this container and all of its subcomponents.