📅  最后修改于: 2020-11-10 04:48:53             🧑  作者: Mango
众所周知,每个顶级窗口都有一个与其关联的菜单栏。该菜单栏包含可供最终用户使用的各种菜单选项。此外,每个选项都包含一个选项列表,称为下拉菜单。 Menu和MenuItem控件是MenuComponent类的子类。
Sr.No. | Class & Description |
---|---|
1 | JMenuBar
The JMenuBar object is associated with the top-level window. |
2 | JMenuItem
The items in the menu must belong to the JMenuItem or any of its subclass. |
3 | JMenu
The JMenu object is a pull-down menu component which is displayed from the menu bar. |
4 | JCheckboxMenuItem
JCheckboxMenuItem is the subclass of JMenuItem. |
5 | JRadioButtonMenuItem
JRadioButtonMenuItem is the subclass of JMenuItem. |
6 | JPopupMenu
JPopupMenu can be dynamically popped up at a specified position within a component. |