JMenuBar

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

Use a JMenuBar bean to provide a set of pull-down menus for a window. When you add a JMenuBar bean, one menu is automatically added to the menu bar. You can modify this menu and add other menus that you need.

Use a MenuBar bean, rather than a JMenuBar bean, if you want to use it with an AWT window or applet. 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