AWT Menu Classes

  • Post author:
  • Post category:AWT
  • Post comments:0 Comments
 menu bar

As we know that every top-level window has a menu bar associated with it. This menu bars consists of various menu choices available to the end-user. Further, each choice contains a list of options which is called drop-down menus. The Menu and MenuItem controls are subclasses of MenuComponent class.

Menu Hiearchy

 menu bar

Menu Controls

Sr. No.Control & Description
1MenuComponent
It is the top-level class for all menu-related controls.
2MenuBar
The MenuBar object is associated with the top-level window.
3MenuItem
The items in the menu must belong to the MenuItem or any of its subclass.
4Menu
The Menu object is a pull-down menu component that is displayed from the menu bar.
5CheckboxMenuItem
CheckboxMenuItem is a subclass of MenuItem.
6PopupMenu
PopupMenu can be dynamically popped up at a specified position within a component.

Leave a Reply