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