nikita bhutada
nikita bhutada

Reputation: 11

RadioButton on DefaulTableModel

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

Upvotes: 1

Views: 184

Answers (1)

trashgod
trashgod

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

Related Questions