code: public boolean deleteRow(int row) {
          if (row < 0 || row >= rows.size()) {
              return false;
          }
          rows.remove(row);
          curPosition.setLocation(curPosition.x-1, curPosition.y);
          return true;
      }
docs: Deletes a row.
  
  @param       row             the number of the row to delete
  @return      boolean <CODE>true</CODE> if the row was deleted; <CODE>false</CODE> if not