Method Summary |
|
public Menu | add(Menu m) Adds the specified menu to the menu bar.
Parameters: m - the menu to be added. |
public void | addNotify() Creates the menu bar's peer. |
String | constructComponentName() Construct a name for this MenuComponent. |
public int | countMenus() |
public void | deleteShortcut(MenuShortcut s) Deletes the specified menu shortcut. |
public Menu | getHelpMenu() Gets the help menu on the menu bar. |
public Menu | getMenu(int i) Gets the specified menu.
Parameters: i - the index position of the menu to be returned. |
public int | getMenuCount() Gets the number of menus on the menu bar. |
public MenuItem | getShortcutMenuItem(MenuShortcut s) Gets the instance of MenuItem associated
with the specified MenuShortcut object,
or null if none of the menu items being managed
by this menu bar is associated with the specified menu
shortcut. |
boolean | handleShortcut(KeyEvent e) |
public void | remove(int index) Removes the menu located at the specified
index from this menu bar. |
public void | remove(MenuComponent m) Removes the specified menu component from this menu bar. |
public void | removeNotify() Removes the menu bar's peer. |
public void | setHelpMenu(Menu m) Sets the specified menu to be this menu bar's help menu. |
public synchronized Enumeration | shortcuts() Gets an enumeration of all menu shortcuts this menu bar
is managing. |