I\'ve tried this:
public void removeSelectedFromTable(JTable from)
{
int[] rows = from.getSelectedRows();
TableModel tm= from.getModel();
while(
I looked at all the solutions, but there are some exceptions, so I would like to add this answer.
for (int i = 0; i < raws.length; i++) {
System.out.println("I : " + i);
for (int j = 1; j <= 1; j++) {
defaultTableModel.removeRow(0);
jTStockJournal.clearSelection();
defaultTableModel.fireTableDataChanged();
}
}