Uses of Class javax.swing.event.AncestorEvent (Java Platform SE 8 )
Date: 2026-07-22

## Uses of Class
javax.swing.event.AncestorEvent

- Packages that use AncestorEvent
  Package | Description
  --- | ---
  javax.swing.event | Provides for events fired by Swing components.

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

    Methods in javax.swing.event with parameters of type AncestorEvent
    Modifier and Type | Method and Description
    --- | ---
    `void` | AncestorListener.`ancestorAdded(AncestorEvent event)` Called when the source or one of its ancestors is made visible either by setVisible(true) being called or by its being added to the component hierarchy.
    `void` | AncestorListener.`ancestorMoved(AncestorEvent event)` Called when either the source or one of its ancestors is moved.
    `void` | AncestorListener.`ancestorRemoved(AncestorEvent event)` Called when the source or one of its ancestors is made invisible either by setVisible(false) being called or by its being remove from the component hierarchy.

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.