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