code: protected void paintBox (Graphics g, Rectangle box)
      {
          // just draw the box in our foreground color
          g.setColor(getForeground());
          g.drawRect(box.x, box.y, box.width, box.height);
      }
docs: Paint the box that represents the visible area of the two-dimensional
  scrolling area.