code: protected TextBox createTextBox(BlockBox contblock, Text n)
      {
          TextBox text = new TextBox(n, (Graphics2D) contblock.getGraphics().create(), contblock.getVisualContext().create());
          text.setOrder(next_order++);
          text.setContainingBlockBox(contblock);
          text.setClipBlock(contblock);
          text.setViewport(viewport);
          text.setBase(baseurl);
          return text;
      }
docs: Creates a text box with the given parent and text node assigned.
  @param contblock The parent node (and the containing block in the same time)
  @param n The corresponding text node in the DOM tree.
  @return The new text box.