I used it once.
I created a tooltip(tooltip, but with an arrow pointing to component component). I used JLayeredPane with POPUP_LAYER to implement it. Therefore, whenever the target component changed its position or changed its size, I needed a notification so that I could configure the tooltip arrow to point to it. This is my practical use of the HeirarchyListener . Now why could I use ComponentListener;)?
source
share