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.
The following beans provide visual list and slider components:
Bean | Description |
---|---|
JComboBox (Swing) or Choice (AWT) | A selectable list with an entry field |
JList (Swing) or List (AWT) | A selectable list of choices |
JProgressBar (Swing) | A progress indicator |
JScrollBar (Swing) or Scrollbar (AWT) | A scrolling component |
JSlider (Swing) | A selection component for a range of values |
Adding a list or slider component
Beans for visual composition