boolean editable = ((Boolean) event.getNewValue()).booleanValue();
  protected void propertyChange(PropertyChangeEvent event)  {    if (event.getPropertyName().equals("editable"))      {        boolean editable = ((Boolean) event.getNewValue()).booleanValue();                // Changing the color only if the current background is an instance of        // ColorUIResource is the behavior of the RI.        if (textComponent.getBackground() instanceof ColorUIResource)          textComponent.setBackground(editable ? background : inactiveBackground);      }  }