Top Description Methods
java.awt.peer

public Interface MenuItemPeer

extends MenuComponentPeer
Known Direct Subinterfaces
java.awt.peer.MenuPeer, java.awt.peer.CheckboxMenuItemPeer
Known Direct Implementers
sun.awt.X11.XMenuItemPeer
Imports
java.awt.MenuItem

The peer interface for menu items. This is used by MenuItem. 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
setEnabled(boolean
true to enable the menu item, false to disable it
e
)

Enables or disables the menu item.

public void
setLabel(String
the label to be displayed
label
)

Sets the label to be displayed in this menu item.

Inherited from java.awt.peer.MenuComponentPeer:
disposesetFont

Method Detail

setEnabledback to summary
public void setEnabled(boolean e)

Enables or disables the menu item.

Parameters
e:boolean

true to enable the menu item, false to disable it

setLabelback to summary
public void setLabel(String label)

Sets the label to be displayed in this menu item.

Parameters
label:String

the label to be displayed