MenuBarPeer is an interface that defines the basis for menu bars.
public abstract interface java.awt.peer.MenuItemPeer extends java.awt.peer.MenuComponentPeer { // Interface Methods public abstract void disable(); public abstract void enable(); public abstract void setEnabled (boolean b); public abstract void setLabel (String label); }
Disables the menu item's peer so that it is unresponsive to user interactions. Replaced by setEnabled(false).
Enables the menu item's peer so that it is responsive to user interactions. Replaced by setEnabled(true).
true to enable the peer; false to disable it.
Enables or disables the menu item's peer.
New text to appear on the menu item's peer.
Changes the label of the menu item's peer.
CheckboxMenuItemPeer, MenuComponentPeer, MenuPeer, String
This HTML Help has been published using the chm2web software. |