strange behavior of JTable..Help plz
843806May 20 2007 — edited May 21 2007Hi,
Assume i have 5 rows in my JTable. I wrote a function on right click i get a popup window with an option delete row, which deletes the row successfully,
The problem is when i sort the data in JTable. on column click JTable is getting sorted, in which assume 2nd row got replaced with 4th row and vice versa.
Now when i try to delete the 4th row, it is delete the 2nd row data, which was there at the place of 4th row before sorting. In this regard i am trying to print the row number before deleting. It is displaying as 4th, but deleting 2nd row.
Hope i am clear. Please suggest me in solving this strange behavior of JTable sorting problem.
Regards,
Ravi