JRadioButton in JTable

HiCan somebody tell me how to add a JRadio button in JTable that is using Abstract tablemodel ? Is there a sample code that is available?Thanks in advance.
[176 byte] By [anteena] at [2007-10-3 8:43:14]
# 1
First I think you might want to extend DefaultTableModel instead of AbstractTableModel. Second this question is asked a lot search for it: http://forum.java.sun.com/thread.jspa?forumID=57&threadID=745901 http://forum.java.sun.com/thread.jspa?forumID=57&threadID=751956
zadoka at 2007-7-15 3:51:48 > top of Java-index,Desktop,Core GUI APIs...
# 2

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?

anteena at 2007-7-15 3:51:48 > top of Java-index,Desktop,Core GUI APIs...
# 3
The column name from the TableModel is used to create the TableColumn used in the TableColumnModel. So you need to change the header value in the TableColumn.
camickra at 2007-7-15 3:51:48 > top of Java-index,Desktop,Core GUI APIs...
# 4
Hi Camickr,Thanks for the help. It works now.
anteena at 2007-7-15 3:51:48 > top of Java-index,Desktop,Core GUI APIs...