This is a highly intermittent failure, it failed only once in CI on a 
particular windows machine and passed on all other runs. 

Failure reason:
When the button was displayed for the first time, the focus rectangle drawn on 
the button text(Button A) was not seen(failure images attached in the bug).

Fix:
To stabilize the test, I have added a line -> button.setFocusPainted(false), so 
that the focus rectangle will not be painted

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

Commit messages:
 - 8339233: Test javax/swing/JButton/SwingButtonResizeTestWithOpenGL.java#id 
failed: Button renderings are different after window resize

Changes: https://git.openjdk.org/jdk/pull/20777/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=20777&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8339233
  Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/20777.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/20777/head:pull/20777

PR: https://git.openjdk.org/jdk/pull/20777

Reply via email to