MenuBarNameMenuBar
DescriptionA MenuBar holds menus. MenuBars are always attached to frames, and displayed on the top line of the Frame. One menu in a MenuBar may be designated a "help" menu. Class Definition
public class java.awt.MenuBar extends java.awt.MenuComponent implements java.awt.MenuContainer { // Constructors public MenuBar(); // Instance Methods public synchronized Menu add (Menu m); public void addNotify(); public int countMenus(); public void deleteShortcut (MenuShortcut s); public Menu getHelpMenu(); public Menu getMenu (int index); public int getMenuCount(); public MenuItem getShortcutMenuItem (MenuShortcut s); public synchronized void remove (int index); public synchronized void remove (MenuComponent component); public void removeNotify(); public synchronized void setHelpMenu (Menu m); public synchronized Enumeration shortcuts(); } ConstructorsMenuBarpublic MenuBar()
Instance Methodsaddpublic synchronized Menu add (Menu m)
addNotifypublic void addNotify()
countMenuspublic int countMenus()
deleteShortcutpublic void deleteShortcut (MenuShortcut s)
getHelpMenupublic Menu getHelpMenu()
getMenupublic Menu getMenu (int index)
getMenuCountpublic int getMenuCount()
getShortcutMenuItempublic MenuItem getShortcutMenuItem (MenuShortcut s)
removepublic synchronized void remove (int index)
public synchronized void remove (MenuComponent component)
removeNotifypublic void removeNotify()
setHelpMenupublic synchronized void setHelpMenu (Menu m)
shortcutspublic synchronized Enumeration shortcuts()
See AlsoFrame, Menu, MenuComponent, MenuContainer |
|