 <ul> <li><p>see Oracle tutorial <a href="http://docs.oracle.com/javase/tutorial/uiswing/events/listselectionlistener.html" rel="nofollow">How to Write a List Selection Listener</a></p></li> <li><p>there are </p> <p>a) single selection mode</p> <p>b) single interval selection mode</p> <p>c) multiple interval selection mode</p></li> <li><p>rest is described in tutorial <a href="http://docs.oracle.com/javase/tutorial/uiswing/components/list.html" rel="nofollow">How to Use Lists</a></p></li> <li><p>probably you search for <code>multiple interval selection mode</code></p></li> </ul>