jdetwiler wrote:I have a couple questions/issues relating to the use of SortableTables. First, after clicking on a column, the sort runs and the data is redrawn. How exactly is this happening? I would expect some event to be fired, but I don't see it. The table data has changed but no TableModelEvent fired? Is it simply repainting the whole table? Related to this, there is currently no listener for the sorted column index and ascending flag. There are times I'd like to be notified of this change.
jdetwiler wrote:Second, the selection seems to not be updated when sorting occurs. That is, if index 0 is selected, then the table sorted, index 0 is still selected even if the value at index 0 is now somewhere else. This is most likely related to the first point since no event is triggered. Is this the desired behavior? If so, while it's true the selection didn't change (still index 0) the item selected may in fact have changed but there's no notification of this.
Users browsing this forum: No registered users and 1 guest