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