Reputation: 11
How can I add a JRadioButton
on my table with the help of DefaultTableModel
?
Upvotes: 1
Views: 184
Reputation: 205805
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.
Upvotes: 2