Choice

Palette category
AWT
Palette bean
Choice
Project
Java class libraries
Package
java.awt
Type
Choice

Use a Choice bean to provide a drop-down list that lets the user select a single choice. The current choice is always displayed. The user can open the list by selecting the drop-down button.

Use a JComboBox bean, rather than a Choice bean, if you want to use it in a Swing container. Although Swing and AWT beans can be mixed, it is inadvisable.


Related procedures
Adding a List or Slider Component

Related references
List and Slider Beans
Beans for Visual Composition