APIdia Launch Partner
Top Description Methods
java.awt.peer

public Interface MenuComponentPeer

Known Direct Subinterfaces
java.awt.peer.MenuItemPeer, java.awt.peer.MenuBarPeer
Imports
java.awt.Font, .MenuComponent

The base interface for all kinds of menu components. This is used by MenuComponent. The peer interfaces are intended only for use in porting the AWT. They are not intended for use by application developers, and developers should not implement peers nor invoke any of the peer methods directly on the peer instances.

Method Summary

Modifier and TypeMethod and Description
public void
dispose()

Disposes the menu component.

public void
setFont(Font
the font to use for the menu component
f
)

Sets the font for the menu component.

Method Detail

disposeback to summary
public void dispose()

Disposes the menu component.

See Also
MenuComponent#removeNotify()
setFontback to summary
public void setFont(Font f)

Sets the font for the menu component.

Parameters
f:Font

the font to use for the menu component

See Also
MenuComponent#setFont(Font)