Code example for PropertyChangeSupport

Methods: firePropertyChange

     * @param oldValue  the old value. 
     * @param newValue  the new value. 
    protected void firePropertyChange(String property, Object oldValue,
            Object newValue) {
        this.propertyChangeSupport.firePropertyChange(property, oldValue,
     * Registers an object with this series, to receive notification whenever 
     * the series changes. 
     * <P> 
     * Objects being registered must implement the {@link SeriesChangeListener} 
     * interface. 
     * @param listener  the listener to register. 
    public void addChangeListener(SeriesChangeListener listener) {
Experience pair programming with AI  Get Codota for Java