public class

BasicInternalFrameTitlePane.SystemMenuBar

extends JMenuBar
java.lang.Object
   ↳ java.awt.Component
     ↳ java.awt.Container
       ↳ javax.swing.JComponent
         ↳ javax.swing.JMenuBar
           ↳ javax.swing.plaf.basic.BasicInternalFrameTitlePane.SystemMenuBar

Class Overview

This class should be treated as a "protected" inner class. Instantiate it only within subclasses of .

Summary

[Expand]
Inherited Constants
From class javax.swing.JComponent
From class java.awt.Component
From interface java.awt.image.ImageObserver
[Expand]
Inherited Fields
From class javax.swing.JComponent
Public Constructors
BasicInternalFrameTitlePane.SystemMenuBar()
Public Methods
boolean isFocusTraversable()
This method is deprecated. As of 1.4, replaced by isFocusable().
boolean isOpaque()
Returns true if this component is completely opaque.
void paint(Graphics g)
Invoked by Swing to draw components.
void requestFocus()
Requests that this Component gets the input focus.
[Expand]
Inherited Methods
From class javax.swing.JMenuBar
From class javax.swing.JComponent
From class java.awt.Container
From class java.awt.Component
From class java.lang.Object
From interface java.awt.MenuContainer
From interface java.awt.image.ImageObserver
From interface javax.accessibility.Accessible
From interface javax.swing.MenuElement

Public Constructors

public BasicInternalFrameTitlePane.SystemMenuBar ()

Public Methods

public boolean isFocusTraversable ()

This method is deprecated.
As of 1.4, replaced by isFocusable().

Returns whether this Component can become the focus owner.

Returns
  • true if this Component is focusable; false otherwise

public boolean isOpaque ()

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.

Returns
  • true if this component is completely opaque

public void paint (Graphics g)

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.

Parameters
g the Graphics context in which to paint

public void requestFocus ()

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.