How can I add a JRadioButton
on my table with the help of DefaultTableModel
?
Asked
Active
Viewed 182 times
1

tenorsax
- 21,123
- 9
- 60
- 107

nikita bhutada
- 11
- 1
-
Your question is very vague. Give more details, and what you have tried till now. – Nivas Dec 06 '10 at 11:05
1 Answers
2
In DefaultTableModel
, you'll need to override getColumnClass()
to return JRadioButton.class
. You'll also need a custom cell renderer and editor, as discussed in the article Concepts: Editors and Renderers.

trashgod
- 203,806
- 29
- 246
- 1,045