How can a transparent stage have round corners and drop shadow?
dukkeJun 26 2012 — edited Jun 26 2012Hi,
This is actually 2 questions:
1- How can a transparent stage have background corners?
I've tried doing this:
.rootPane
{
-fx-border-radius: 4 4 4 4;
-fx-background-radius: 4 4 4 4;
-fx-border-color: gray;
-fx-border-style: solid;
-fx-border-width: 1;
-fx-background-image: url("resource/clean_textile.png");
}
And make the root of the scene have the ".rootPane" style class.
But it sometimes shows some visual artifacts on the corners. Am I doing it wrong? is this a bug?
2 - How can a transparent stage show the windows 7 drop shadow effect of windows? Is it possible?