Uses of Class java.beans.PropertyVetoException (Java Platform SE 8 )
Date: 2026-06-25

## Uses of Class
java.beans.PropertyVetoException

- Packages that use PropertyVetoException
  Package | Description
  --- | ---
  java.awt | Contains all of the classes for creating user interfaces and for painting graphics and images.
  java.beans | Contains classes related to developing beans -- components based on the JavaBeans™ architecture.
  java.beans.beancontext | Provides classes and interfaces relating to bean context.
  javax.swing | Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.

- - ### Uses of PropertyVetoException in java.awt

    Methods in java.awt that throw PropertyVetoException
    Modifier and Type | Method and Description
    --- | ---
    `protected void` | KeyboardFocusManager.`fireVetoableChange(String propertyName, Object oldValue, Object newValue)` Fires a PropertyChangeEvent in response to a change in a vetoable property.

  - ### Uses of PropertyVetoException in java.beans

    Methods in java.beans that throw PropertyVetoException
    Modifier and Type | Method and Description
    --- | ---
    `void` | VetoableChangeSupport.`fireVetoableChange(PropertyChangeEvent event)` Fires a property change event to listeners that have been registered to track updates of all properties or a property with the specified name.
    `void` | VetoableChangeSupport.`fireVetoableChange(String propertyName, boolean oldValue, boolean newValue)` Reports a boolean constrained property update to listeners that have been registered to track updates of all properties or a property with the specified name.
    `void` | VetoableChangeSupport.`fireVetoableChange(String propertyName, int oldValue, int newValue)` Reports an integer constrained property update to listeners that have been registered to track updates of all properties or a property with the specified name.
    `void` | VetoableChangeSupport.`fireVetoableChange(String propertyName, Object oldValue, Object newValue)` Reports a constrained property update to listeners that have been registered to track updates of all properties or a property with the specified name.
    `void` | VetoableChangeListenerProxy.`vetoableChange(PropertyChangeEvent event)` Forwards the property change event to the listener delegate.
    `void` | VetoableChangeListener.`vetoableChange(PropertyChangeEvent evt)` This method gets called when a constrained property is changed.

  - ### Uses of PropertyVetoException in java.beans.beancontext

    Methods in java.beans.beancontext that throw PropertyVetoException
    Modifier and Type | Method and Description
    --- | ---
    `void` | BeanContextChildSupport.`fireVetoableChange(String name, Object oldValue, Object newValue)` Report a vetoable property update to any registered listeners.
    `void` | BeanContextChildSupport.`setBeanContext(BeanContext bc)` Sets the `BeanContext` for this `BeanContextChildSupport`.
    `void` | BeanContextChild.`setBeanContext(BeanContext bc)` Objects that implement this interface, shall fire a java.beans.PropertyChangeEvent, with parameters: propertyName "beanContext", oldValue (the previous nesting `BeanContext` instance, or `null`), newValue (the current nesting `BeanContext` instance, or `null`).
    `void` | BeanContextSupport.`setLocale(Locale newLocale)` Sets the locale of this BeanContext.
    `void` | BeanContextSupport.`vetoableChange(PropertyChangeEvent pce)` subclasses may envelope to monitor veto child property changes.

  - ### Uses of PropertyVetoException in javax.swing

    Methods in javax.swing that throw PropertyVetoException
    Modifier and Type | Method and Description
    --- | ---
    `protected void` | JComponent.`fireVetoableChange(String propertyName, Object oldValue, Object newValue)` Supports reporting constrained property changes.
    `void` | JInternalFrame.`setClosed(boolean b)` Closes this internal frame if the argument is `true`.
    `void` | JInternalFrame.`setIcon(boolean b)` Iconifies or de-iconifies this internal frame, if the look and feel supports iconification.
    `void` | JInternalFrame.`setMaximum(boolean b)` Maximizes and restores this internal frame.
    `void` | JInternalFrame.`setSelected(boolean selected)` Selects or deselects the internal frame if it's showing.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.