Making a Property Change Event
JavaBeans has a class to which has implemented these three methods for you:public class java.beans.PropertyChangeSupport implements java.io.Serializable…public synchronized void addPropertyChangeListener …public synchronized void removePropertyChangeListener …public void firePropertyChange (String propertyName, Object oldValue, Object newValue);
This class behaves as a source of events.