Java Programming - JExcelAPi Help. VERY URGENT!!!
Hi Guys,
I'm currently working on a project which involves using the JExcelApi. I imported the content of an excel file into a jtable successfully but the problem is:
The user needs to select a row in the table which is to be deleted on the click of a button, this action displays an error, below is some of my code and the error displayed
DefaultTableModel model = (DefaultTableModel) xlsTable.getModel();
System.out.println(model.getRowCount());
model.removeRow(xlsTable.getSelectedRow());
THIS IS THE EXCEPTION THROWN
Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: com.medic.client.importExcel$SheetTableModel cannot be cast to javax.swing.table.DefaultTableModel

