Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How can a transparent stage have round corners and drop shadow?

dukkeJun 26 2012 — edited Jun 26 2012
Hi,

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?
This post has been answered by jsmith on Jun 26 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 24 2012
Added on Jun 26 2012
2 comments
1,088 views