I am using the code found at this website to be able to sort a jtable's data
The problem that I am having is that after sorting the table by clicking on one of the headers, I grab the data from the jtable by using table.getDataVector();
The problem is that this data is not sorted, but the jtable is.
How can I determine what was selected from the jtable after it has been sorted by clicking on the header and still be able to pull the the data from the vector that matches that selection?
If it helps I add the data to the table by doing the following:
SortableTableModel t = (SortableTableModel)table.
// start a loop here and create a seperate vector for each row
Vector row = new Vector();
// end the loop
Any suggestions would be very much appreciated