Menu Editor

Menus are an attribute of the entire frame that you create in Visual Java. You add and modify menus using the Menu Editor.

Creating Menus

Use the Menu Editor to describe the menus you want included on your frame's menu bar. You create a list of menus, items, and separators in the Menu Editor list. When you click Apply, they are added to the frame in the Layout panel.

The menu list that you create in the Menu Editor is hierarchical:


This Menu Editor list:		  Produces this menu:


Menu Editor Controls

Use the following controls to create the Menu Editor list.

Name
Specifies the name of the menu or item. Add names of your own, or allow Visual Java to generate them for you. If you do not add a name, a unique name is automatically generated for you when you click Apply.

Text
Specifies the text of the menu or menu item.

Enabled
Determines whether by default the menu is enabled or disabled.

Tearoff Menu
Not implemented in this release.

Separator
Adds a horizontal rule to the menu to separate items.

Font
The font to use in the menu. A font chooser dialog box is provided.

Left Arrow
Moves the selected object one column to the left.

Right Arrow
Indents the selected object one column to the right.

Down Arrow
Moves the selected object down one row.

Up Arrow
Moves the selected object up one row.

Next
Moves the selection to the next object in the list.

Insert
Inserts a new object in the list.

Delete
Deletes the selected object from the list.

Add Help Menu
Adds a Help menu to the list (the Help menu is automatically added to the far right corner of the menu bar).


The Help menu must be the last menu in the list. If you attempt to add additional menus, an error is generated when you apply the changes.

After you add the Help menu to the list by clicking on Add Help Menu, you must add the text ("Help") for the menu in the text field.


See also:

Visual Java Overview
The Visual Menu
Visual Java Components
Laying Out GUI Interfaces
Generating Java Source Code
Adding Operations (Filters and Actions)
Visual Java Runtime Classes
Creating Menus
Adding Custom Components and Windows
Using Groups and Shadows (Basic)
Using Groups and Shadows (Advanced)
Visual Java API Documentation
Visual Java Runtime Packages
Class Hierarchy
Index of all Fields and Methods