Hi
Thanks for the links. As you said, I used the DefaultTableModel and I was able to add the radio button. I am struggling with this now
dm.setDataVector(
new Object[][]{
{"Group 1",new JRadioButton("A")},
{"Group 1",new JRadioButton("B")},
{"Group 1",new JRadioButton("C")},
{"Group 2",new JRadioButton("a")},
{"Group 2",new JRadioButton("b")}},
new Object[]{"String","JRadioButton"});
Here the column names will be 'String' and 'JRadioButton'. I wanted to give user defined names. But I cannot change them. Also I tried dm.addColumn("Select"). But it doesn't seem to work. Is there a way to give column names as I need?