Creating a Choice Menu

Use the Choice component to display a menu of options that drops down from a button.

To add a choice menu to the layout:

  1. Click on the Choice component in the AWT palette tab.
  2. Click in the cell where you want to place the component.
  3. Open the attribute editor by clicking on its button in the main toolbar.
  4. Type a unique component ID in the name box.
  5. Type the names of the menu options in the items box. Each name should be separated by a comma.

See also:

Laying Out the Interface
Generating Java Source Code
Adding Operations to Components
GUI Builder Palette

Visual Java GUI Builder API Documentation
Visual Java GUI Builder Runtime Packages
Class Hierarchy
Index of All Fields and Methods