svoid selectTableRows(final JTable table, int[] rows) { if (table != null) swing { ListSelectionModel model = table.getSelectionModel(); model.clearSelection(); if (rows != null) for (row : rows) model.addSelectionInterval(row, row); } }