On Wed, 22 Jan 2025 20:03:36 GMT, Harshitha Onkar <hon...@openjdk.org> wrote:

> > What if the window that loses focus is not the parent of the popup 
> > hierarchy? Or is it guaranteed that all the children of the popup window 
> > receive the focus lost event?
> 
> Doesn't the updated FocusablePopupDismissTest.java & 
> NestedFocusablePopupTest.java cover this case (Focusable item > sub item) or 
> is the above case different?

@honkar-jdk Not sure about it… My question was about the clean-up of the focus 
listener.

@azvegint [answered my 
question](https://github.com/openjdk/jdk/pull/22729#discussion_r1929001676) now:

> _…all the popup menu will be dismissed, performing cleanups in their `hide()` 
> and `setVisible()` methods._

-------------

PR Comment: https://git.openjdk.org/jdk/pull/22729#issuecomment-2613070788

Reply via email to