Code example for JList

Methods: getSelectedIndexisSelectionEmptylocationToIndex