Added code for selecting items in JLists