Code example for PropertyChangeSupport

0
  private PropertyChangeSupport propertyChangeSupport;
  private Color value;
 
  public ColorPropertyEditor() 
  { 
    propertyChangeSupport = new PropertyChangeSupport(this);
  } 
 
  public void setValue(final Object value)
  { 
    final Object oldValue = this.value;
    if (value instanceof Color)
    { 
      if (colorChooser != null)
      { 
        colorChooser.setColor((Color) value);
      } 
      this.value = (Color) value;
    } 
    else if (value instanceof String)
    {