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.
Modifier and Type | Method and Description |
---|---|
public void | setEnabled(boolean
true to enable the menu item, false
to disable itEnables or disables the menu item. |
public void |
setEnabled | back to summary |
---|---|
public void setEnabled(boolean e) Enables or disables the menu item.
|
setLabel | back to summary |
---|---|
public void setLabel(String label) Sets the label to be displayed in this menu item.
|