Code example for PropertyChangeEvent

0
//    } 
 
    if (old == null && value == null) return;
    if ((old != null && ! (old.equals(value))) || (! value.equals(old)))
    { 
      _bus.post(new PropertyChangeEvent(_source, _name, old, _value));
    } 
    else 
    { 
      p("Ignoring set to same value:" + value);
    } 
  } 
 
  private void p(String string)
  { 
    System.out.println("[Property] " + string);
  } 
}