public void setRowSelected(int row, boolean on) { RowData rd = (RowData) rows.get(row); rd.setSelected(on && rd.canSelect()); }