when I reposition the columns in a table, and add KeyListener the order of the columns in the table remain as originally defined e.g. if column headers are A, B, C
A B C
1 2 3
getValueAt(i,j) will give 1, 2, 3
however when user changes the column order to B, C, A I want to read
getValueAt(i, j) 2, 3, 1 but it doesn't.
It hasn't detected that the order changed and it still gives 1, 2, 3.
Does anyone know how should I add the appropriate listener to detect this kind of change to the table?
Thanks
AH