Question

I need to create a ComboBox in Java that will have information in a column on the left and a Checkbox in a column on the right so that a user can select multiple items in the ComboBox. This needs to be a ComboBox because there could be 100 items in the list that may need to be checked but they cannot take up much space on the user interface.

Does anyone know how to do this?

Was it helpful?

Solution

Using a JList inside a JScrollPane seems more appropriate for dealing with that many items. It supports the standard CTRL-click to select multiple items.

A multi-selection combobox with 100 items sounds like a UI nightmare.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top