Swing lists, represented by the
JList class, display a list of selectable objects and support three selection modes: single selection, single interval selection, and multiple interval selection.
JList class delegates the responsibilities of maintaining and rendering a list of objects; a list's model maintains a list of objects that are rendered in list cells by a list cell renderer.
By default, list cell renderers are instances of
DefaultListCellRenderer, which renders objects ...