103104105106107108109110111112113
int rowIndex = table.getSelectedRow(); if (rowIndex == -1) rowIndex = 0; if (tableColumnIndex == -1) tableColumnIndex = 0; table.selectCell(rowIndex, tableColumnIndex); if (requestFocus) { table.requestFocus(); } } } }