On Wed, 16 Jul 2025 06:20:22 GMT, Tejesh R <t...@openjdk.org> wrote:

>> `frame.requestFocus()` tries to make the frame current focus owner but it 
>> does not guarantee that focus will be granted. So, to be on safer side, it's 
>> better to bring the frame to the front and the request keyboard focus.
>
> According to me, `frame.requestFocus()` should work fine for this test. Can u 
> test once without `frame.toFront();` and see if its fine ?

That may work but since this test was failing intermittently, I would prefer to 
keep both.
Test even passed without these statements but failing on specific node.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/26307#discussion_r2209382871

Reply via email to