JMenu

Palette category
Swing
Palette bean
JMenu
Project
JFC class libraries
Package
com.sun.java.swing
Type
JMenu

Use a JMenu bean to provide a set of related choices for a window or component. You can add the menu either as a pull-down menu for a menu bar or as a cascade menu for another menu. You can also add subclasses of AbstractAction to the free-form surface and add them to the menu in the menu get method.

Use a Menu bean, rather than a JMenu bean, if you want to use it with an AWT container. Although Swing and AWT beans can be mixed, it is inadvisable.


Related procedures
Adding a Menu or Tool Bar

Related references
Menu and Tool Bar Beans
Beans for Visual Composition