Add an actionlistener to the radio block, sort and set the Model table. The Vector argument is the input to defaultTableModel.
final JTable table = new JTable(); JRadioButton button = new JRadioButton(); button.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) {
user500074
source share