Color old = g.getColor(); g.setColor(textComponent.getBackground()); g.fillRect(0, 0, textComponent.getWidth(), textComponent.getHeight()); g.setColor(old);
  protected void paintBackground(Graphics g)  {    // This method does nothing. All the background filling is done by the    // ComponentUI update method. However, the method is called by paint    // to provide a way for subclasses to draw something different (e.g.    // background images etc) on the background.  }