List components provide a list of items for the user to select. Slider components show a range of selection values or show progress for the duration of an operation. VisualAge provides list and slider beans from Swing and AWT packages. Basic list and slider beans from the Abstract Windowing Toolkit (AWT) are provided in the Java class libraries project, in the java.awt package. Enhanced list and slider beans from the Java Foundation Classes (JFC) library are provided in the JFC class libraries project, in the com.sun.java.swing package. Although Swing and AWT beans can be mixed, it is inadvisable.
The following beans provide visual list and slider components:
Bean | Description |
---|---|
JComboBox or Choice | A selectable list with an entry field |
JList or List | A selectable list of choices |
JProgressBar | A progress indicator |
JScrollBar or Scrollbar | A scrolling component |
JSlider | A selection component for a range of values |
Adding a List or Slider Component
Beans for Visual Composition