## Uses of Class
javax.swing.tree.ExpandVetoException

- Packages that use ExpandVetoException
  Package | Description
  --- | ---
  javax.swing | Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
  javax.swing.event | Provides for events fired by Swing components.

- - ### Uses of ExpandVetoException in javax.swing

    Methods in javax.swing that throw ExpandVetoException
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | JTree.`fireTreeWillCollapse(TreePath path)` Notifies all listeners that have registered interest for notification on this event type.
    `void` | JTree.`fireTreeWillExpand(TreePath path)` Notifies all listeners that have registered interest for notification on this event type.

  - ### Uses of ExpandVetoException in javax.swing.event

    Methods in javax.swing.event that throw ExpandVetoException
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | TreeWillExpandListener.`treeWillCollapse(TreeExpansionEvent event)` Invoked whenever a node in the tree is about to be collapsed.
    `void` | TreeWillExpandListener.`treeWillExpand(TreeExpansionEvent event)` Invoked whenever a node in the tree is about to be expanded.

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.