Menu and Tool Bar Beans

VisualAge provides menu beans from Swing and AWT packages and tool bar beans from Swing and IBM packages. Basic menu beans from the Abstract Windowing Toolkit (AWT) are provided in the Java class libraries project, in the java.awt package. Enhanced menu and tool bar beans from the Java Foundation Classes (JFC) library are provided in the JFC class libraries project, in the com.sun.java.swing package. Visual composition implementation beans are provided in the IBM Java Implementation project, in the com.ibm.uvm.abt.edit package. Although Swing and AWT beans can be mixed, it is inadvisable.

The following beans provide menu and tool bar components:


Bean Description
JCheckBoxMenuItem or CheckboxMenuItem A menu choice that toggles a setting on and off
JMenu or Menu A cascade menu for another menu
JMenuBar or MenuBar A menu bar for a window
JMenuItem or MenuItem A menu choice that calls a method
JPopupMenu or PopupMenu A pop-up menu for window components
JRadioButtonMenuItem A menu choice that provides one of a set of mutually exclusive setting values
JSeparator or MenuSeparator A horizontal line that separates groups of related choices
JToolBar A graphical set of tool choices
JToolBarButton A button for a tool bar
JToolBarSeparator A visual separator between components in a tool bar


Related procedures
Adding a Menu or Tool Bar

Related references
Beans for Visual Composition