On Tue, 29 Sep 2020 10:03:05 GMT, Sergey Bylokhov <s...@openjdk.org> wrote:
> The test assumes that the code below will trigger the focus event on the > button2 immediately after setVisible(), but > the window can become visible really fast before button2.requestFocus(); is > called, so temporarily the button1 will get > a focus for a small moment. > add(button1); > add(button2); > setVisible(true); > button2.requestFocus(); > > After the fix, the test will wait for the last focus event, and after that, > it checks that the correct button is > focused. This pull request has now been integrated. Changeset: 1d88172c Author: Sergey Bylokhov <s...@openjdk.org> URL: https://git.openjdk.java.net/jdk/commit/1d88172c Stats: 50 lines in 1 file changed: 5 ins; 19 del; 26 mod 8253682: The AppletInitialFocusTest1.java is unstable Reviewed-by: jdv ------------- PR: https://git.openjdk.java.net/jdk/pull/398