This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
import java.beans.VetoableChangeSupport;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.openide.DialogDisplayer;
import org.openide.NotifyDescriptor;
import org.openide.explorer.propertysheet.InplaceEditor.Factory;
getChange().firePropertyChange(PROP_STATE, null, newState);
} catch (PropertyVetoException pve) {
// and notify the user that the change cannot happen
PropertyDialogManager.notify(pve);
DialogDisplayer.getDefault().notify(
new NotifyDescriptor.Message(pve.getLocalizedMessage(), NotifyDescriptor.WARNING_MESSAGE));
}