Hi there,

I would like to implement a table where the first column is a Radiobutton that serves as a GroupSelector. The second and third column would be a list of names and a checkbox. The idea is to first select a group (say animals, humans) via the radiobuttons, and then within that group use the checkboxes to select individuals in that group (say dogs and cats). When one group is selected, the other group should not be editable (checkboxes disabled).
I tried to use a double JTable. The First one with 2 cols, where the second col is another JTable with the names and checkboxes. However, I had trouble selecting the checkboxes that way.

Another idea was to have a radiobutton per row, and hide and disable the ones that are in the same group.

A third idea was to just one table, and put the names/checkboxes in a panel (one per group) and add them to the respec. columns.

None of this seems to really be the greatest solution and I had trouble implementing it.

Does anybody have a better idea?

Thanks, John.