Overridden to enforce the position of the glass component as the zero child.
comp | the component to be enhanced | |
constraints | the constraints to be respected | |
index | the index |
Notifies this component that it now has a parent component.
When this method is invoked, the chain of parent components is
set up with KeyboardAction
event listeners.
This method is called by the toolkit internally and should
not be called directly by programs.
Gets the AccessibleContext
associated with this
JRootPane
. For root panes, the
AccessibleContext
takes the form of an
AccessibleJRootPane
.
A new AccessibleJRootPane
instance is created if necessary.
AccessibleJRootPane
that serves as the
AccessibleContext
of this JRootPane
Returns a string that specifies the name of the L&F class that renders this component.
JComponent.getUIClassID, UIDefaults.getUI
The glassPane
and contentPane
have the same bounds, which means JRootPane
does not tiles its children and this should return false.
On the other hand, the glassPane
is normally not visible, and so this can return true if the
glassPane
isn't visible. Therefore, the
return value here depends upon the visibility of the
glassPane
.
If a descendant of this JRootPane
calls
revalidate
, validate from here on down.
Deferred requests to layout a component and its descendents again.
For example, calls to revalidate
, are pushed upwards to
either a JRootPane
or a JScrollPane
because both classes override isValidateRoot
to return true.
JComponent.isValidateRoot, java.awt.Container.isValidateRoot
Returns a string representation of this JRootPane
.
This method is intended to be used only for debugging purposes,
and the content and format of the returned string may vary between
implementations. The returned string may be empty but may not
be null
.
JRootPane
.
Notifies this component that it no longer has a parent component.
When this method is invoked, any KeyboardAction
s
set up in the chain of parent components are removed.
This method is called by the toolkit internally and should
not be called directly by programs.
Sets whether this component should use a buffer to paint.
If set to true, all the drawing from this component will be done
in an offscreen painting buffer. The offscreen painting buffer will
the be copied onto the screen.
If a Component
is buffered and one of its ancestor
is also buffered, the ancestor buffer will be used.
aFlag | if true, set this component to be double buffered |
Resets the UI property to a value from the current look and feel.
JComponent.updateUI
Diagram: RootPaneContainer