Code example for PropertyChangeSupport

Methods: addPropertyChangeListener

        log = Logger.getLogger(Settings.class); 
        propSupport = new PropertyChangeSupport(this);
    public void addListener(String name, PropertyChangeListener listener) {
        propSupport.addPropertyChangeListener(name, listener);
    public void removeListener(String name, PropertyChangeListener listener) {
        propSupport.removePropertyChangeListener(name, listener);
    public void destroyPreferences() { 
        try { 
        } catch (BackingStoreException e) {
            log.error("Failed to destroy app settings", e);
Stop searching for code, let great code find you!  Add Codota to your java IDE