The basic parts of a menu are referred to using the following terms:
A menu bar is displayed at the top of a frame. It is composed of one or more top-level menus, such as File, Edit, or Help. A JMenuBar may have any component as a child, such as a JComboBox or JToggleButton, for example.
A menu is a child of menu bar and contains a collection of menu items, submenus, and separators.
A submenu is a menu whose parent is another menu instead of the menu bar.
A menu item is an individual element on a menu which can invoke a command. Menu items can have attributes such as being disabled (gray) when not allowed, or checkable so their selection state can be toggled.
An accelerator, also known as an keyboard shortcut, allows an alternative way to invoke a menu item. When a menu item has an accelerator, it is displayed at the right of the menu item.
The separator bar helps to visually group related items. It does not invoke a command.
Copyright © 1997, 2004, Oracle. All rights reserved.