Replaced listener interfaces with PropertyChangeListener from java beans.