Package java.awt.peer |
![]() Previous |
![]() Java API |
![]() Index |
![]() Next |
The menu bar peer interface specifies the methods that all implementations of Abstract Window Toolkit menu bars must define.
public interface java.awt.peer.MenuBarPeer extends java.awt.peer.MenuComponentPeer { // Methods public abstract void addHelpMenu(Menu m); public abstract void addMenu(Menu m); public abstract void delMenu(int index); }
public abstract void addHelpMenu(Menu m)Sets the help menu on the menu bar to be the specified menu.
Parameter Description m the help menu
public abstract void addMenu(Menu m)Adds the specified menu to the menu bar.
Parameter Description m the menu to be added
public abstract void delMenu(int index)Removes the menu located at the specified index from the menu bar.
Parameter Description index the position of the menu to be removed