Arrow « JList « Java Swing Q&A





1. arrow-down and arrow-up stop working in JList    coderanch.com

Hi In my application, I have two lists (Jlist masterList, JList slaveList) and 9 JComboBoxes. When an item in masterList is selected, the data in slaveList is updated as well, then data in JComboBoxes is updated consequently. What I do is if an item in masterList is selected, I will set slaveList.setSelectedIndex(0), in slaveList's valueChanged(ListSelectionEvent e) method I update data in ...