preserve selection when new results arrive

auto-update
Zlatin Balevsky 2021-09-05 16:53:46 +01:00
parent 89f0280b50
commit 78f017b952
No known key found for this signature in database
GPG Key ID: A72832072D525E41
1 changed files with 3 additions and 1 deletions

View File

@ -126,9 +126,11 @@ class SearchTabModel {
results2.clear()
results2.addAll(hashBucket.keySet())
JTable table = builder.getVariable("senders-table")
int selectedRow = table.getSelectedRow()
table.model.fireTableDataChanged()
table.selectionModel.setSelectionInterval(selectedRow, selectedRow)
table = builder.getVariable("results-table2")
int selectedRow = table.getSelectedRow()
selectedRow = table.getSelectedRow()
table.model.fireTableDataChanged()
table.selectionModel.setSelectionInterval(selectedRow, selectedRow)
}