MenuBar Members

MenuBar Members

Class Overview | This Package | All Packages

Constructors
Name Description
MenuBar() Creates a new menu bar.

Methods
Name Description
add(Menu) Adds the specified menu to the menu bar.
addNotify() Creates the menu bar's peer.
countMenus() Deprecated.
deleteShortcut(MenuShortcut) Deletes the specified menu shortcut.
getHelpMenu() Gets the help menu on the menu bar.
getMenu(int) Gets the specified menu.
getMenuCount() Gets the number of menus on the menu bar.
getShortcutMenuItem(MenuShortcut) Gets the instance of MenuItem associated with the specified MenuShortcut object, or null if none has been specified.
remove(int) Removes the menu located at the specified index from this menu bar.
remove(MenuComponent) Removes the specified menu component from this menu bar.
removeNotify() Removes the menu bar's peer.
setHelpMenu(Menu) Sets the help menu on this menu bar to be the specified menu.
shortcuts() Gets an enumeration of all menu shortcuts this menu bar is managing.