mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-47517 - IAE: JTable.boundRow
convert row index from model to view
This commit is contained in:
+1
-1
@@ -259,7 +259,7 @@ public class StatisticsPanel implements DataProvider {
|
||||
protected void selectRowOf(final SMTestProxy proxy) {
|
||||
SMRunnerUtil.addToInvokeLater(new Runnable() {
|
||||
public void run() {
|
||||
final int rowIndex = myTableModel.getIndexOf(proxy);
|
||||
final int rowIndex = myStatisticsTableView.convertRowIndexToView(myTableModel.getIndexOf(proxy));
|
||||
myStatisticsTableView.setRowSelectionInterval(rowIndex, rowIndex >= 0 ? rowIndex : 0);
|
||||
// Scroll to visible
|
||||
TableUtil.scrollSelectionToVisible(myStatisticsTableView);
|
||||
|
||||
Reference in New Issue
Block a user