EA-47517 - IAE: JTable.boundRow

convert row index from model to view
This commit is contained in:
anna
2013-07-05 12:08:57 +02:00
parent 87f96afaeb
commit 6ebde016d8
@@ -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);