This inner class is marked "public" due to a compiler bug.
This class should be treated as a "protected" inner class.
Instantiate it only within subclasses of .
Nested Class Summary
Nested classes inherited from class javax.swing.JMenuBar
Requests that this Component get the input focus, and that this
Component's top-level ancestor become the focused Window. This component
must be displayable, visible, and focusable for the request to be
granted. Every effort will be made to honor the request; however, in
some cases it may be impossible to do so. Developers must never assume
that this Component is the focus owner until this Component receives a
FOCUS_GAINED event. If this request is denied because this Component's
top-level Window cannot become the focused Window, the request will be
remembered and will be granted when the Window is later focused by the
user.
This method cannot be used to set the focus owner to no Component at
all. Use KeyboardFocusManager.clearGlobalFocusOwner()
instead.
Because the focus behavior of this method is platform-dependent,
developers are strongly encouraged to use
requestFocusInWindow when possible.
Invoked by Swing to draw components.
Applications should not invoke paint directly,
but should instead use the repaint method to
schedule the component for redrawing.
This method actually delegates the work of painting to three
protected methods: paintComponent,
paintBorder,
and paintChildren. They're called in the order
listed to ensure that children appear on top of component itself.
Generally speaking, the component and its children should not
paint in the insets area allocated to the border. Subclasses can
just override this method, as always. A subclass that just
wants to specialize the UI (look and feel) delegate's
paint method should just override
paintComponent.
Returns true if this component is completely opaque.
An opaque component paints every pixel within its
rectangular bounds. A non-opaque component paints only a subset of
its pixels or none at all, allowing the pixels underneath it to
"show through". Therefore, a component that does not fully paint
its pixels provides a degree of transparency.
Subclasses that guarantee to always completely paint their contents
should override this method and return true.
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the .