1

How can I add a JRadioButton on my table with the help of DefaultTableModel?

tenorsax
  • 21,123
  • 9
  • 60
  • 107

1 Answers1

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