public class MetalMenuBarUI extends BasicMenuBarUI
MenuBarUI. This class is responsible for providing the metal look and feel for
JMenuBars.
MenuBarUI
changeListener, containerListener, menuBar| Constructor and Description |
|---|
MetalMenuBarUI()
|
| Modifier and Type | Method and Description |
|---|---|
static ComponentUI |
createUI(JComponent
Creates the
ComponentUI implementation for the passed in component.
|
void |
installUI(JComponent
Configures the specified component appropriate for the metal look and feel.
|
void |
uninstallUI(JComponent
Reverses configuration which was done on the specified component during
installUI.
|
void |
update(Graphics
If necessary paints the background of the component, then invokes
paint.
|
createChangeListener, createContainerListener, getMaximumSize, getMinimumSize, installDefaults, installKeyboardActions, installListeners, uninstallDefaults, uninstallKeyboardActions, uninstallListenerscontains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getPreferredSize, paintpublic static ComponentUIcreateUI(JComponent x)
ComponentUI implementation for the passed in component.
x - JComponent to create the ComponentUI implementation for
x
NullPointerException - if
x is null
public void installUI(JComponentc)
installUI in class
BasicMenuBarUI
c - the component where this UI delegate is being installed
NullPointerException - if
c is null.
ComponentUI.uninstallUI(javax.swing.JComponent) ,
JComponent.setUI(javax.swing.plaf.ComponentUI) ,
JComponent.updateUI()
public void uninstallUI(JComponentc)
installUI.
uninstallUI in class
BasicMenuBarUI
c - the component where this UI delegate is being installed
NullPointerException - if
c is null.
ComponentUI.installUI(javax.swing.JComponent) ,
JComponent.updateUI()
public void update(Graphicsg, JComponent c)
paint.
update in class
ComponentUI
g - Graphics to paint to
c - JComponent painting on
NullPointerException - if
g or
c is null
ComponentUI.update(java.awt.Graphics, javax.swing.JComponent) ,
ComponentUI.paint(java.awt.Graphics, javax.swing.JComponent)