/** * Adds the paths at each of the specified rows to the current selection. * * @param rows an array of ints specifying the rows to add, * where 0 indicates the first row in the display */ public void addSelectionRows(int... rows) { if (rows != null) { int numRows = rows.length; TreePath[] paths = new TreePath[numRows]; for (int counter = 0; counter < numRows; counter++) paths[counter] = getPathForRow(rows[counter]); addSelectionPaths(paths); } }