javax.swing.plaf.metal

Class MetalMenuBarUI

public class MetalMenuBarUI extends BasicMenuBarUI

A UI implementation for MenuBar in the Metal Look & Feel.

Since: 1.5

Method Summary
static ComponentUIcreateUI(JComponent c)
Creates and returns a new instance of this UI for the specified component.
voidupdate(Graphics g, JComponent c)
If the property MenuBar.gradient is set, then a gradient is painted as background, otherwise the normal superclass behaviour is called.

Method Detail

createUI

public static ComponentUI createUI(JComponent c)
Creates and returns a new instance of this UI for the specified component.

Parameters: c the component to create a UI for

Returns: the UI for the component

update

public void update(Graphics g, JComponent c)
If the property MenuBar.gradient is set, then a gradient is painted as background, otherwise the normal superclass behaviour is called.