public void hitFound(int nr) { table.getSelectionModel().addSelectionInterval(nr, nr); table.scrollRectToVisible( table.getCellRect(table.getSelectionModel().getMinSelectionIndex(), 0, true)); }