문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top