On Thu, 21 Mar 2024 11:48:28 GMT, Alexander Zvegintsev <azveg...@openjdk.org> wrote:
>> test/jdk/java/awt/regtesthelpers/PassFailJFrame.java line 662: >> >>> 660: button = new >>> JButton(TimeoutHandlerPanel.PAUSE_BUTTON_LABEL); >>> 661: >>> 662: button.setFocusPainted(false); >> >> I wonder if it's the default focus owner? Should we request focus to `Pass` >> instead? > >> I wonder if it's the default focus owner? > > It is(e.g. with `setFocusPainted(true)`): >  > >> Should we request focus to Pass instead? > > Probably not, to avoid accidentally passing the test, while hitting the pause > is harmless. Not so sure⦠Pause is not the main control. I guess the focus was in the instructions previously, we could preserve it. It may be not worth it though. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18368#discussion_r1533756608