| 
Java™ Platform Standard Ed. 6  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.MenuBarUI
javax.swing.plaf.basic.BasicMenuBarUI
javax.swing.plaf.metal.MetalMenuBarUI
public class MetalMenuBarUI
Metal implementation of MenuBarUI. This class is responsible
 for providing the metal look and feel for JMenuBars.
MenuBarUI| Field Summary | 
|---|
| Fields inherited from class javax.swing.plaf.basic.BasicMenuBarUI | 
|---|
changeListener, containerListener, menuBar | 
| Constructor Summary | |
|---|---|
MetalMenuBarUI()
 | 
|
| Method Summary | |
|---|---|
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. | 
| Methods inherited from class javax.swing.plaf.basic.BasicMenuBarUI | 
|---|
createChangeListener, createContainerListener, getMaximumSize, getMinimumSize, installDefaults, installKeyboardActions, installListeners, uninstallDefaults, uninstallKeyboardActions, uninstallListeners | 
| Methods inherited from class javax.swing.plaf.ComponentUI | 
|---|
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getPreferredSize, paint | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public MetalMenuBarUI()
| Method Detail | 
|---|
public static ComponentUI createUI(JComponent x)
ComponentUI implementation for the passed
 in component.
x - JComponent to create the ComponentUI implementation for
x
NullPointerException - if x is nullpublic void installUI(JComponent c)
installUI in class BasicMenuBarUIc - 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(JComponent c)
installUI.
uninstallUI in class BasicMenuBarUIc - the component where this UI delegate is being installed
NullPointerException - if c is null.ComponentUI.installUI(javax.swing.JComponent), 
JComponent.updateUI()
public void update(Graphics g,
                   JComponent c)
paint.
update in class ComponentUIg - Graphics to paint toc - JComponent painting on
NullPointerException - if g or c is
         nullComponentUI.update(java.awt.Graphics, javax.swing.JComponent), 
ComponentUI.paint(java.awt.Graphics, javax.swing.JComponent)
  | 
Java™ Platform Standard Ed. 6  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.