📜  AWT菜单类

📅  最后修改于: 2020-11-18 07:48:57             🧑  作者: Mango


众所周知,每个顶级窗口都有一个与其关联的菜单栏。该菜单栏包含可供最终用户使用的各种菜单选项。此外,每个选项都包含选项列表,称为下拉菜单。 Menu和MenuItem控件是MenuComponent类的子类。

菜单Hiearchy

AWT菜单Hiearchy

菜单控件

Sr. No. Control & Description
1

MenuComponent

It is the top level class for all menu related controls.

2

MenuBar

The MenuBar object is associated with the top-level window.

3

MenuItem

The items in the menu must belong to the MenuItem or any of its subclass.

4

Menu

The Menu object is a pull-down menu component which is displayed from the menu bar.

5

CheckboxMenuItem

CheckboxMenuItem is subclass of MenuItem.

6

PopupMenu

PopupMenu can be dynamically popped up at a specified position within a component.