<p>What would be the best way to have a list of items with a checkbox each in Java Swing?</p>

<p>I.e. a JList with items that have some text and a checkbox each?</p>

I'd probably be looking to use a
JTable
rather than a
JList
and since the default rendering of a checkbox is rather ugly, I'd probably be looking to drop in a custom
TableModel
,
CellRenderer
and
CellEditor
to represent a boolean value. Of course, I would imagine this has been done a bajillion times already. Sun has
good examples
.