if (editable) textComponent.setBackground(background); else textComponent.setBackground(inactiveBackground);
if (textComponent.getBackground() instanceof ColorUIResource) textComponent.setBackground(editable ? background : inactiveBackground);
  protected void propertyChange(PropertyChangeEvent event)  {    if (event.getPropertyName().equals("editable"))      {        boolean editable = ((Boolean) event.getNewValue()).booleanValue();        if (editable)          textComponent.setBackground(background);        else           textComponent.setBackground(inactiveBackground);      }  }