public class MetalMenuBarUI extends BasicMenuBarUI
MenuBarUI. This class is responsible
for providing the metal look and feel for JMenuBars.MenuBarUIchangeListener, containerListener, menuBar| Constructor and Description |
|---|
MetalMenuBarUI() |
| Modifier and Type | Method and Description |
|---|---|
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. |
createChangeListener, createContainerListener, getMaximumSize, getMinimumSize, installDefaults, installKeyboardActions, installListeners, uninstallDefaults, uninstallKeyboardActions, uninstallListenerscontains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getPreferredSize, paintpublic static ComponentUI createUI(JComponent x)
ComponentUI implementation for the passed
in component.NullPointerException - if x is nullx - JComponent to create the ComponentUI implementation forxpublic void installUI(JComponent c)
installUI in class BasicMenuBarUINullPointerException - if c is null.c - the component where this UI delegate is being installedComponentUI.uninstallUI(javax.swing.JComponent),
JComponent.setUI(javax.swing.plaf.ComponentUI),
JComponent.updateUI()public void uninstallUI(JComponent c)
installUI.uninstallUI in class BasicMenuBarUINullPointerException - if c is null.c - the component where this UI delegate is being installedComponentUI.installUI(javax.swing.JComponent),
JComponent.updateUI()public void update(Graphics g, JComponent c)
paint.update in class ComponentUINullPointerException - if g or c is
nullg - Graphics to paint toc - JComponent painting onComponentUI.update(java.awt.Graphics, javax.swing.JComponent),
ComponentUI.paint(java.awt.Graphics, javax.swing.JComponent)aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2019 aicas GmbH. All Rights Reserved.