if (evt.getPropertyName().equals("selectedbrush")) { Brush b = brushes.getSelectedBrush(); if (b != null) { brushSize.setValue(b.getBounds().width); } }
    public void propertyChange(PropertyChangeEvent evt) {        bApply.setEnabled(true);    }