RowSorter keeps the initial index?
Hello All,
I have implemented the TableRowSorter using table.setAutoCreateRowSorter(true);
Now, after some data is fed in, I have sorted the table.
If initially the column 1 had values
a
c
b
Now after sorting it has become
a
b
c
Now, when I select the 3rd row from the sorted table and delete it, the table deletes the 2nd row which has the value b. Could anyone let me know where I am going wrong?
I also used
sorter.convertRowIndexToModel(table.getSelectedRow());
to get the right row... But this returns the wrong row I guess... Could anyone please help me?
Thanks & Regards
Irfaan

