This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I don't think there is any direct way to do that but you can add a listener to the list (addListSelectionListener) that's notified each time a change to the selection occurs.In case user selects more than three you can call clearSelection() to change the selection to empty set.
Snigdha<br />Sun Certified Programmer for the Java™ 2 Platform