if (textComponent.isEditable()) textComponent.setBackground(background); else textComponent.setBackground(inactiveBackground);  g.setColor(textComponent.getBackground()); g.fillRect(0, 0, textComponent.getWidth(), textComponent.getHeight()); }
}
  protected void paintBackground(Graphics g)  {    if (textComponent.isEditable())      textComponent.setBackground(background);    else      textComponent.setBackground(inactiveBackground);    g.setColor(textComponent.getBackground());    g.fillRect(0, 0, textComponent.getWidth(), textComponent.getHeight());    }