Tuesday, February 17, 2004 05:11 PM
What you have to do is to put a filter model inbetween your JTable and original model. Your filter model should be able to sort your data and keep sorted references ( usually row indexes ) to original model.
Thursday, February 12, 2004 10:21 AM
I am not sure how you perform the sorting, but here is an idea. In your table model (if you are not using a custom one, you may want to) perform the sorting and store your data in a collection.
Hope this helps.
Tuesday, February 3, 2004 08:19 AM
Make sure that you are sorting the underlying table model. After you sort the model's data, fire a change event to let the view (and any other listeners) know that it needs to redraw the table with fireTableDataChanged().