public String row(int i)
    throws Exception
  {

    int h = this.tb.height();
    // Sanity check
    if ((i < 0) || (i >= h))
      {
        throw new Exception("Invalid row " + i);
      } // if the row is invalid
    if (this.tb.width() > this.width)
      {
        throw new Exception("New TextBlock width is greater than " + width);
      }//if the width is invalid
    String result;
    String spaces = "";
    for (int j = 0; j < (this.width - this.tb.width()); j++)
      {
        spaces = spaces.concat(" ");
      }
    

    result = spaces.concat(this.tb.row(i));
    return result;
  } // row(int)