# Uses of Interface
java.awt.event.HierarchyListener

Packages that use HierarchyListener
Package
Description
java.awt
Contains all of the classes for creating user interfaces and for painting graphics and images.

## Uses of HierarchyListener in java.awt

Classes in java.awt that implement HierarchyListener
Modifier and Type
Class
Description
`class`
`AWTEventMulticaster`
`AWTEventMulticaster` implements efficient and thread-safe multi-cast event dispatching for the AWT events defined in the `java.awt.event` package.
Methods in java.awt that return HierarchyListener
Modifier and Type
Method
Description
`static HierarchyListener`
AWTEventMulticaster.`add(HierarchyListener a, HierarchyListener b)`
Adds hierarchy-listener-a with hierarchy-listener-b and returns the resulting multicast listener.
`HierarchyListener[]`
Component.`getHierarchyListeners()`
Returns an array of all the hierarchy listeners registered on this component.
`static HierarchyListener`
AWTEventMulticaster.`remove(HierarchyListener l, HierarchyListener oldl)`
Removes the old hierarchy-listener from hierarchy-listener-l and returns the resulting multicast listener.
Methods in java.awt with parameters of type HierarchyListener
Modifier and Type
Method
Description
`static HierarchyListener`
AWTEventMulticaster.`add(HierarchyListener a, HierarchyListener b)`
Adds hierarchy-listener-a with hierarchy-listener-b and returns the resulting multicast listener.
`void`
Component.`addHierarchyListener(HierarchyListener l)`
Adds the specified hierarchy listener to receive hierarchy changed events from this component when the hierarchy to which this container belongs changes.
`static HierarchyListener`
AWTEventMulticaster.`remove(HierarchyListener l, HierarchyListener oldl)`
Removes the old hierarchy-listener from hierarchy-listener-l and returns the resulting multicast listener.
`void`
Component.`removeHierarchyListener(HierarchyListener l)`
Removes the specified hierarchy listener so that it no longer receives hierarchy changed events from this component.