public interface MenuPeer extends MenuItemPeer
Menu
.
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 |
---|---|
void |
addItem(MenuItem item)
Adds the specified menu item to the menu.
|
void |
addSeparator()
Adds a separator (e.g.
|
void |
delItem(int index)
Removes the menu item at the specified index.
|
setEnabled, setLabel
dispose, setFont
void addSeparator()
Menu.addSeparator()
void addItem(MenuItem item)
item
- the menu item to addMenu.add(MenuItem)
void delItem(int index)
index
- the index of the item to removeMenu.remove(int)