I\'ve tried this:
public void removeSelectedFromTable(JTable from) { int[] rows = from.getSelectedRows(); TableModel tm= from.getModel(); while(
try this is perfect work and simple
DefaultTableModel df1 = (DefaultTableModel) jTable1.getModel(); int rs[] = jTable1.getSelectedRows(); for (int i = rs.length-1; i >=0 ; i--) { int k = rs[i]; df1.removeRow(k); }