code: public void drawContent(Graphics2D g)
      {
          //top left corner
          int x = absbounds.x;
          int y = absbounds.y;
  
          //Draw the string
          if (textEnd > textStart)
          {
              String t = text.substring(textStart, textEnd);
              Shape oldclip = g.getClip();
              if (clipblock != null)
                  g.setClip(applyClip(oldclip, clipblock.getClippedContentBounds()));
              ctx.updateGraphics(g);
              
              if (wordSpacing == null && expwidth == 0)
                  drawAttributedString(g, x, y, t);
              else
                  drawByWords(g, x, y, t);
              
              g.setClip(oldclip);
          }
      }
docs: Draw the text content of this box (no subboxes)
  @param g the graphics context to draw on