void (int[] rows, boolean convertModelRowsToView) { int[] viewRows = convertModelRowsToView ? new int[rows.length] : rows; if (convertModelRowsToView) { for (int i = 0; i < rows.length; i++) { viewRows[i] = myTable.convertRowIndexToView(rows[i]); } } TableUtil.selectRows(myTable, viewRows); TableUtil.scrollSelectionToVisible(myTable); }