How to add JRadioButton to two columuns of a JTable and ButtonGroup them.
问题 I want a JTable which consists of 2 columns(having RadioButton ) Active and Inactive such that if Active Column is Selected then Inactive RadioButton gets Unselected and Vice versa means that in a single row only 1 radiobutton can be selected out of 2 radiobuttons. the code for radiobutton is below . I am not able 2 add buttongroup for this 2 columns. public class NewJFrame extends javax.swing.JFrame { DefaultTableModel dt; public JRadioButton radioButton=new JRadioButton(); public class