We can handle this using co-ordination jtable view and table model
convertRowIndexToModel
convertRowIndexToView
convertRowIndexToView
probably will need something like this:
int viewRow = table.getSelectedRow();
int modelRow = table.convertRowIndexToModel(viewRow);
int modelRow = table.convertRowIndexToModel(viewRow);
table.getModel().removeRow(modelRow);
No comments:
Post a Comment