List

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

Use a List bean to provide a list of choices from which the user can make one or more selections. Your program can add or remove choices from the list.

By default, the user can select one choice from the list. When the user selects a choice, any previously selected choice is no longer selected. You can change the behavior of the list to allow multiple selection.

Use a JList bean, rather than a List 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