public class BasicInternalFrameTitlePane.SystemMenuBar extends JMenuBar
This class should be treated as a "protected" inner class. Instantiate it only within subclasses of Foo
.
JMenuBar.AccessibleJMenuBar
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
public SystemMenuBar()
public boolean isFocusTraversable()
Description copied from class: Component
Returns whether this Component
can become the focus owner.
isFocusTraversable
in class Component
true
if this Component
is focusable; false
otherwiseComponent.setFocusable(boolean)
public void requestFocus()
Description copied from class: JComponent
Requests that this Component
gets the input focus. Refer to Component.requestFocus()
for a complete description of this method.
Note that the use of this method is discouraged because its behavior is platform dependent. Instead we recommend the use of requestFocusInWindow()
. If you would like more information on focus, see How to Use the Focus Subsystem, a section in The Java Tutorial.
requestFocus
in class JComponent
Component.requestFocusInWindow()
, Component.requestFocusInWindow(boolean)
public void paint(Graphics g)
Description copied from class: JComponent
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
.
paint
in class JComponent
g
- the Graphics
context in which to paintJComponent.paintComponent(java.awt.Graphics)
, JComponent.paintBorder(java.awt.Graphics)
, JComponent.paintChildren(java.awt.Graphics)
, JComponent.getComponentGraphics(java.awt.Graphics)
, JComponent.repaint(long, int, int, int, int)
public boolean isOpaque()
Description copied from class: JComponent
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.
isOpaque
in class JComponent
JComponent.setOpaque(boolean)
© 1993–2017, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.