I am trying to add new row on the JTable when it saves the information to the database, it works for adding row to database. However, it doesn't work when I am trying to add row to the JTable.
DefaultTableModel table = (DefaultTableModel) jTable1.getModel();
jTable1.setModel(table);
table.addRow(new Object[]{TChampion.getText(),score,kill,death,asisst});
But, I got an error( I used try and catch):
org.jdesktop.swingbinding.JTableBinding$BindingTableModel cannot be cast to javax.swing.table.DefaultTableModel