public interface MenuBarPeer extends MenuComponentPeer
MenuBar
.
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 |
addHelpMenu(Menu m)
Adds a help menu to the menu bar.
|
void |
addMenu(Menu m)
Adds a menu to the menu bar.
|
void |
delMenu(int index)
Deletes a menu from the menu bar.
|
dispose, setFont
void addMenu(Menu m)
m
- the menu to addMenuBar.add(Menu)
void delMenu(int index)
index
- the index of the menu to removeMenuBar.remove(int)
void addHelpMenu(Menu m)
m
- the help menu to addMenuBar.setHelpMenu(Menu)