java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.MenuBarUI
javax.swing.plaf.basic.BasicMenuBarUI
javax.swing.plaf.metal.MetalMenuBarUI
public class MetalMenuBarUI extends BasicMenuBarUI
Metal implementation of 
MenuBarUI. This class is responsible
 for providing the metal look and feel for JMenuBars.- Since:
- 1.5
- See Also:
- MenuBarUI
- 
Field SummaryFields declared in class javax.swing.plaf.basic.BasicMenuBarUIchangeListener, containerListener, menuBar
- 
Constructor SummaryConstructors Constructor Description MetalMenuBarUI()
- 
Method SummaryModifier and Type Method Description static ComponentUIcreateUI(JComponent x)Creates theComponentUIimplementation for the passed in component.voidinstallUI(JComponent c)Configures the specified component appropriate for the metal look and feel.voiduninstallUI(JComponent c)Reverses configuration which was done on the specified component duringinstallUI.voidupdate(Graphics g, JComponent c)If necessary paints the background of the component, then invokespaint.Methods declared in class javax.swing.plaf.basic.BasicMenuBarUIcreateChangeListener, createContainerListener, installDefaults, installKeyboardActions, installListeners, uninstallDefaults, uninstallKeyboardActions, uninstallListenersMethods declared in class javax.swing.plaf.ComponentUIcontains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, paint
- 
Constructor Details- 
MetalMenuBarUIpublic MetalMenuBarUI()
 
- 
- 
Method Details- 
createUICreates theComponentUIimplementation for the passed in component.- Parameters:
- x- JComponent to create the ComponentUI implementation for
- Returns:
- ComponentUI implementation for x
- Throws:
- NullPointerException- if- xis null
 
- 
installUIConfigures the specified component appropriate for the metal look and feel.- Overrides:
- installUIin class- ComponentUI
- Parameters:
- c- the component where this UI delegate is being installed
- Throws:
- NullPointerException- if- cis null.
- See Also:
- ComponentUI.uninstallUI(javax.swing.JComponent),- JComponent.setUI(javax.swing.plaf.ComponentUI),- JComponent.updateUI()
 
- 
uninstallUIReverses configuration which was done on the specified component duringinstallUI.- Overrides:
- uninstallUIin class- ComponentUI
- Parameters:
- c- the component where this UI delegate is being installed
- Throws:
- NullPointerException- if- cis null.
- See Also:
- ComponentUI.installUI(javax.swing.JComponent),- JComponent.updateUI()
 
- 
updateIf necessary paints the background of the component, then invokespaint.- Overrides:
- updatein class- ComponentUI
- Parameters:
- g- Graphics to paint to
- c- JComponent painting on
- Throws:
- NullPointerException- if- gor- cis null
- Since:
- 1.5
- See Also:
- ComponentUI.update(java.awt.Graphics, javax.swing.JComponent),- ComponentUI.paint(java.awt.Graphics, javax.swing.JComponent)
 
 
-