On Tue, 11 Jun 2024 11:24:13 GMT, Tejesh R <t...@openjdk.org> wrote:

> What happens when we introduce another component in-between, say for example 
> in the test we add one more Frame in-between printDailogButton and mainFrame. 
> Which frame does get activated on close of print dialog? The intermediate one 
> or mainFrame?

If the owner of the dialog was focused last, then it will be refocused. If the 
new frame is focused while the dialog is still open, then the dialog is closed, 
then nothing will be focused.

So the owner of the dialog will refocus if it was last focused, otherwise no 
behavior is changed. I'm not sure if in this case the new intermediate frame 
should be focused if it's unrelated to the dialog and was last focused. Maybe 
@mrserb has an input?

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

PR Comment: https://git.openjdk.org/jdk/pull/19588#issuecomment-2161562728

Reply via email to