code: private void setCurrentLocationToNextValidPosition(Point aLocation)    {
          // set latest location to next valid position
          int i, j;
          i = aLocation.x;
          j = aLocation.y;
          do {
              if ( (j + 1)  == columns ) {    // goto next row
                  i++;
                  j = 0;
              }
              else {
                  j++;
              }
          }
          while (
          (i < rows.size()) && (j < columns) && (((Row) rows.get(i)).isReserved(j))
          );
          curPosition = new Point(i, j);
      }
docs: Sets current col/row to valid(empty) pos after addCell/Table
  @param aLocation a location in the Table