I've made a JTable of ArrayList and I'm trying to add a blank row to the table when a button is pressed. I've marked the offending line where I get the error
no suitable method found for addRow(Role)
method DefaultTableModel.addRow(Object[]) is not applicable
(actual argument Role cannot be converted to Object[] by method invocation conversion)
method DefaultTableModel.addRow(Vector) is not applicable
(actual argument Role cannot be converted to Vector by method invocation conversion)
This seems pretty obvious, but I have no idea how to fix it. Override addRow? How? Is my problem elsewhere and this is where it gets snagged? Any suggestions would be much appreciated.
The runtime error is: "Exception in
thread "AWT-EventQueue-0" java.lang.RuntimeException: Uncompilable source code - Erroneous sym type: SMC.RoleCard.RoleTableModel.addRow"
And here's the code...