Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Multiple Selection Model for ComboBox

922832May 10 2012 — edited May 11 2012
Javadoc stats

"As with ListView, it is possible to modify the SelectionModel that is used, although this is likely to be rarely changed. The default SelectionModel used in ComboBox is a SingleSelectionModel, but this can be switched out by developers to instead allow for multiple selection to occur, or to alter the behavior of the various methods provided in these APIs. "

Yet when I try to set the selection model like I would for a listview using the following
comboBox.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);
I am informed that setSelectionModel is not available.

How do you enable multiple selection in a ComboBox??
This post has been answered by Jonathan Giles-Oracle on May 10 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 8 2012
Added on May 10 2012
2 comments
11,654 views