Remove Jtable rows
How to remove multiple rows of JTable using for loop?
The situation is user selects the row it contain key, if a row match that key delete the row.
i implement the the idea following way
but problem is after removing row table row is less by one and the row move up, and few rows are unchecked change in the row please help me how to remove the multiple rows with a loop .
for(int i=jtable.getSelectedRow()+1; i<jtable.getRowCount(); i++)
Iterate in reverse, from the last row to the first.
Thanks boss simple trick thank you very much......