On Mon, 30 Mar 2026 21:09:58 GMT, Christopher Schnick <[email protected]> 
wrote:

>> As far as I can see, it uses the owner `Scene` and `DialogPane` sizes, so it 
>> might be possible to set all those values and get predictable X and Y values.
>> 
>> And since the tests are headless with the stub toolkit, it might be indeed 
>> predictable (same code should run for all OS). Worth a try at least
>
> Alright, I added tests for this. It should work if the screen sizes for the 
> tests are the same everywhere

I think it should!
See here:

https://github.com/openjdk/jfx/blob/a9703fa6e3c9b70e35207d646440849f3eee29e4/modules/javafx.graphics/src/test/java/test/com/sun/javafx/pgstub/StubToolkit.java#L120-L124

which is used for all headless tests. So this seems good!

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

PR Review Comment: https://git.openjdk.org/jfx/pull/2127#discussion_r3015185568

Reply via email to