|
Java™ by example!
|
|
|
How do I allow for multiple selections in a JList?
A JList has three different selection modes: 1) SINGLE_SELECTION: allows only one item to be selected at a time 2) SINGLE_INTERVAL_SELECTION: allows contiguous items to be selected at a time 3) MULTIPLE_INTERVAL_SELECTION: (default) allows any combination of items to be selected at a time Following example shows you how to apply them Main.java:
Further Information
Author of answer: Joris Van den Bogaert
Comments
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|