what's the easiest way to have checkboxes in a table?

Hey well the subject says it all.

what's the easiest way to have checkboxes in a table?

I have a table which has some text and some boolean values, u know true/false.

I'm guessing that i have to use a cell renderer that extends a JComboBox.

but how do i distingiush from text n boolean?

note the table is not editable, this might save some code.

the table is set up like this

| text | boolean | boolean | boolean | boolean | int |

in a cell renderer is there a check for which column it's working with?

anytips?

[576 byte] By [avdzma] at [2007-10-3 3:44:31]
# 1
It's explained in detail here: http://java.sun.com/docs/books/tutorial/uiswing/components/table.html
KelVarnsona at 2007-7-14 21:40:43 > top of Java-index,Desktop,Core GUI APIs...