private void selectRowAt(Point p){
  int row=table.rowAtPoint(p);
  if (row != -1) {
    setRowSelected(row);
  }
}

private void selectRowAt ( Point p ) { int row = table . rowAtPoint ( p ) ; if ( row != - 1 ) { setRowSelected ( row ) ; } }
select the row at the given coordinates .
