IDEMPIERE-4945 Selected row is changed after table sort in Swing UI (#865)

At the end of table sorting, trigger data status change event before UI
event, so that GridTab data is changed before UI refresh, which is
needed for Swing UI.
This commit is contained in:
Xin Wang 2021-09-07 20:10:09 +08:00 committed by GitHub
parent ae5a665dd8
commit 7f09b1adc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1013,10 +1013,10 @@ public class GridTable extends AbstractTableModel
if (!isSameSortEntries)
{
// update UI
fireTableDataChanged();
// Info detected by MTab.dataStatusChanged and current row set to 0
fireDataStatusIEvent(SORTED_DSE_EVENT, "#" + m_sort.size());
// update UI
fireTableDataChanged();
}
} // sort