RFR: 8324941: POC for Headless platform for JavaFX [v2]

Andy Goryachev angorya at openjdk.org
Fri Jun 27 20:41:49 UTC 2025


On Mon, 23 Jun 2025 07:43:39 GMT, Johan Vos <jvos at openjdk.org> wrote:

>> modules/javafx.graphics/src/main/java/com/sun/glass/ui/headless/HeadlessWindow.java line 294:
>> 
>>> 292:     private void notifyResizeAndMove(int x, int y, int width, int height) {
>>> 293:         HeadlessView view = (HeadlessView) getView();
>>> 294:         //   if (getWidth() != width || getHeight() != height) {
>> 
>> Why is this code commented out?
>
> There was a failing test, so it turns out there is an implicit contract that even if a resize is requested without different w/h parameters, at least the even should still be generated.

should we either add a comment or clean up (or both) then?

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

PR Review Comment: https://git.openjdk.org/jfx/pull/1836#discussion_r2172815759


More information about the openjfx-dev mailing list