Skip to main content

Setting background to transparent

2 replies [Last post]
vi5in
Offline
Joined: 2008-08-08
Points: 0

I've created a small calendar in JavaFX and I've got it displaying as an applet in the browser. I am even able to drag it to the desktop. The calendar has rounded corners so the white background shows through. I tried setting the fill of the stage to Color.TRANSPARENT, but that didn't work. Is there a way to make the background transparent?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
gdclem
Offline
Joined: 2008-08-15
Points: 0

i'm not sure how you have your calendar setup but did you try to use WindowStyle

Frame{
windowStyle: WindowStyle.TRANSPARENT

}

endolf
Offline
Joined: 2003-06-10
Points: 0

I got it working with a

Frame {
windowStyle: WindowStyle.TRANSPARENT;
stage:Stage {
fill: null;
}
}

HTH

Endolf