|
TableReorder |
Top Previous Next |
TableReorder acts on a JTable in order to ensure that the same rows are selected after the ReorderEvent is generated.
The table selections after data changes is a two-step process:
First, ReorderEvents are processed by this ReorderListener, in which step a map of how the rows have changed are stored.
Next, and after the table has finished painting the affected by the TableModelEvent area, the following method is called:
public void reselectTableRows(int[] selRows, int[] mapIndex);
, which updates the table selection.