With StageStyle.EXTENDED some of the window elements are drawn by the OS. On all platforms that would include the drop shadows. For Mac it would include the default close/iconify/fullscreen controls (which are difficult to replace seamlessly) and on Windows I’m pretty sure the OS draws a thin outline or two around each stage. If the goal is to allow control over the opacity of the window keep in mind that you won’t be able to control the opacity of these elements.

EXTENDED assumes an opaque background just like DECORATED does so this would require an API addition in JavaFX. Which platforms are you most interested in? My guess is that this is not much work on Mac, probably very tricky or impossible on Windows and for Linux I would not even venture a guess.

Martin

On Oct 21, 2025, at 10:09 AM, Dirk Lemmermann <[email protected]> wrote:

I am very much interested in this, too. I currently do not need it but I had projects in the past where I wished this feature had been available. I am confident this wish will resurface again at some point in time. It’s one more of those features that will make it possible for JavaFX developers to build apps that can compete with more native UI frameworks.

Dirk

Am 21.10.2025 um 05:00 schrieb Glavo <[email protected]>:

Is anyone interested in this question?

On Wed, Oct 15, 2025 at 10:21 PM Glavo <[email protected]> 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

Reply via email to