I've successfully implemented the table sorter from the sun website. Problem is when I add another item to the table - I get an ArrayIndexOutOfBoundsException.ArrayIndexOutOfBoundsException.
specifying the problem at: return getViewToModel()[viewIndex].modelIndex; in
public int modelIndex(int viewIndex) { return getViewToModel()[viewIndex].modelIndex; }
does anyone know what might be the problem? thanks
the complete error is below.
Thomas Rowland
Greenhorn
Joined: Nov 01, 2006
Posts: 1
posted
0
I am experiencing the same problem. I have struggled with this for days and have resorted to removing the TableSorter unless I can find a solution.
I have tried swapping out the sorterTableModel and replacing it with the original tableModel while updates are happening, but this does not work.