public class

MetalMenuBarUI

extends BasicMenuBarUI
java.lang.Object
   ↳ javax.swing.plaf.ComponentUI
     ↳ javax.swing.plaf.MenuBarUI
       ↳ javax.swing.plaf.basic.BasicMenuBarUI
         ↳ javax.swing.plaf.metal.MetalMenuBarUI

Class Overview

Metal implementation of MenuBarUI. This class is responsible for providing the metal look and feel for JMenuBars.

See Also

Summary

[Expand]
Inherited Fields
From class javax.swing.plaf.basic.BasicMenuBarUI
Public Constructors
MetalMenuBarUI()
Public Methods
static ComponentUI createUI(JComponent x)
Creates the ComponentUI implementation for the passed in component.
void installUI(JComponent c)
Configures the specified component appropriate for the metal look and feel.
void uninstallUI(JComponent c)
Reverses configuration which was done on the specified component during installUI.
void update(Graphics g, JComponent c)
If necessary paints the background of the component, then invokes paint.
[Expand]
Inherited Methods
From class javax.swing.plaf.basic.BasicMenuBarUI
From class javax.swing.plaf.ComponentUI
From class java.lang.Object

Public Constructors

public MetalMenuBarUI ()

Public Methods

public static ComponentUI createUI (JComponent x)

Creates the ComponentUI implementation for the passed in component.

Parameters
x JComponent to create the ComponentUI implementation for
Returns
  • ComponentUI implementation for x
Throws
NullPointerException if x is null

public void installUI (JComponent c)

Configures the specified component appropriate for the metal look and feel.

Parameters
c the component where this UI delegate is being installed
Throws
NullPointerException if c is null.

public void uninstallUI (JComponent c)

Reverses configuration which was done on the specified component during installUI.

Parameters
c the component where this UI delegate is being installed
Throws
NullPointerException if c is null.

public void update (Graphics g, JComponent c)

If necessary paints the background of the component, then invokes paint.

Parameters
g Graphics to paint to
c JComponent painting on
Throws
NullPointerException if g or c is null