On Thu, 21 Mar 2024 19:10:40 GMT, Phil Race <[email protected]> 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

Reply via email to