public void addPropertyChangeListener ( PropertyChangeListener l ) { // Check if the listneres list has been initialized if ( listeners == null ) { // Listeneres list not intialized so create a new list listeners = new ArrayList ( ) ; } synchronized ( listeners ) { // Add the new listener to the list listeners . add ( l ) ; } }
Adds a property changed listener to be notified of changes to the application state .