JLists
The class Jlist can be constructed with an array or vector of items for the list.
The property of single or multiple selection is set by list.setSelectionMode (ListSelectionModel.SINGLE_SELECTION);
The number or rows to show in the list is list.setVisibleRowCount ( 8 );
The Jlist does not provide its own scrollbars but should be added to a JScrollPane.
Adding and removing elements is handled by calling list.setListData ( names );where names is the updated array or vector of items.
Items can easily be Strings or Icons, but may also be any other object if you provide an implementation of the interface ListCellRenderer.