RFR: 8328555: hidpi problems for test java/awt/Dialog/DialogAnotherThread/JaWSTest.java

Alexey Ivanov aivanov at openjdk.org
Fri Mar 22 15:50:28 UTC 2024


On Thu, 21 Mar 2024 19:10:40 GMT, Phil Race <prr at openjdk.org> wrote:

> This previously closed test is cleaned up, opened and fixed to work on hidpi at fractional scales.
> It has unrelated problems on macOS 14 and is problem listed there (as it was when it was a closed test).

test/jdk/java/awt/Dialog/JaWSTest.java line 69:

> 67:                             buttonLocation.y + button.getHeight()/2);
> 68:             robot.mousePress(InputEvent.BUTTON1_DOWN_MASK);
> 69:             robot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);

I guess the click with Robot can be replaced with a programmatic click (wrapped into `invokeLater`). Yet `awt.Button` does not have a way to simulate a click, `JButton` has `doClick()` method.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/18439#discussion_r1535801245


More information about the client-libs-dev mailing list