SWING Tutorial
SWING Useful Resources
Selected Reading
- SWING - Containers
- SWING - Menu
- SWING - Layouts
- SWING - Event Adapters
- SWING - Event Listeners
- SWING - Event Classes
- SWING - Event Handling
- SWING - Controls
- SWING - Environment
- SWING - Overview
- SWING - Home
SWING Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
SWING - Menu
SWING - Menu Classes
As we know that every top-level window has a menu bar associated with it. This menu bar consists of various menu choices available to the end user. Further, each choice contains a pst of options, which is called drop-down menus. Menu and MenuItem controls are subclass of MenuComponent class.
Menu Hierarchy
Menu Controls
Sr.No. | Class & Description |
---|---|
1 | The JMenuBar object is associated with the top-level window. |
2 | The items in the menu must belong to the JMenuItem or any of its subclass. |
3 | The JMenu object is a pull-down menu component which is displayed from the menu bar. |
4 | JCheckboxMenuItem is the subclass of JMenuItem. |
5 | JRadioButtonMenuItem is the subclass of JMenuItem. |
6 | JPopupMenu can be dynamically popped up at a specified position within a component. |