StageStyle.EXTENDED with transparent background

Christopher Schnick crschnick at xpipe.io
Tue Jan 20 13:33:40 UTC 2026


I experimented with this myself and created the draft PR 
https://github.com/openjdk/jfx/pull/2045. If you like, you can try it 
out. I think at least that this is the issue you described.

I haven't evaluated all the consequences of this yet and only tested it 
on Windows. But there it works as expected for me

On 21/10/2025 05:00, Glavo wrote:
> Is anyone interested in this question?
>
> On Wed, Oct 15, 2025 at 10:21 PM Glavo <zjx001202 at gmail.com> wrote:
>
>     Hi,
>
>     Our application has traditionally used StageStyle.TRANSPARENT to
>     enable a fully customizable stage.
>     This allows users to set custom backgrounds and adjust the
>     window's opacity freely, leveraging our powerful personalization
>     features.
>
>     After the release of JavaFX 25, we want to migrate to
>     StageStyle.EXTENDED so that
>     we can use native window decorations and no longer need to draw
>     window shadows ourselves.
>     But using StageStyle.EXTENDED creates a stage with a white
>     background, which prevents us
>     from setting the window's opacity.
>     So is there any way we can make the stage background transparent
>     while using StageStyle.EXTENDED?
>
>     Glavo
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20260120/93c1e5f9/attachment.htm>


More information about the openjfx-dev mailing list