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

Johan Vos jvos at openjdk.org
Mon Jul 7 07:47:22 UTC 2025


On Mon, 7 Jul 2025 07:34:14 GMT, Johan Vos <jvos at openjdk.org> wrote:

>> modules/javafx.graphics/src/main/java/com/sun/glass/ui/headless/HeadlessWindow.java line 36:
>> 
>>> 34:     private float alpha;
>>> 35:     private Pixels icon;
>>> 36:     private Cursor cursor;
>> 
>> The following fields are never used, other than assigning a value:
>> * `ptr`
>> * `resizable`
>> * `visible`
>> * `isFocusable`
>> * `enabled`
>> * `closed`
>> * `bg_r`, `bg_g`, `bg_b`
>> * `alpha`
>> * `icon`
>> * `cursor`
>
> I had those since I think they might be useful "later", when we add more configuration options, or in case there are tests that rely on them. But I believe it is better indeed to remove them, and re-introduce them when needed.

ptr and visible are used, I removed the others.

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

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


More information about the openjfx-dev mailing list