A javaFX Stage could be both StageStyle.UTILITY and StageStyle.TRANSPARENT?


Question

I mean that when using a stage with stageStyle.UTILITY, I don't want to show the "solid white background " but a transparent background.

I need a stage doesn't shown on the windows' task bar below(stageStyle.UTILITY can satisfy), and I need a transparent background(StageStyle.TRANSPARENT can satisfy)so that I can define the close button style of my stage.

But it seems strange that stageStyle.UTILITY or StageStyle.TRANSPARENT only fit one of my request.

Thank you.

1
4
3/19/2013 2:38:12 PM

Accepted Answer

4
3/20/2013 9:13:59 AM

It is not yet possible in javafx but javafx is swing compatible so you can use swing to make a swing equivalent to a transparent utility stage. See here for some examples. I hope that this helps.


Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon