javafx transparent window background with decorations

By | April 18, 2018

I’m having a hard time figuring out how to make a transparent background for an application window in javafx. scene.setFill(null) seems to only work with stage.initStyle(StageStyle.TRANSPARENT). Doc for setFill says

Both a null value meaning paint no background and a Paint with transparency are supported, but what is painted behind it will depend on the platform.

but that doesn’t make sense to me. It works (on windows 8) only with StageStyle.TRANSPARENT which removes the exit button and such which I still want.

I’ve looked at and a few questions here.

Can this be done on windows?