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!

declaration CSS Error parsing

1020069Aug 10 2013 — edited Aug 12 2013

I have this JavaFX CSS code:

bpi.setStyle("-fx-background-color: linear-gradient(#f2f2f2, #d4d4d4);"

                + "       -fx-shadow-highlight-color,"

                + "       -fx-outer-border,"

                + "       -fx-inner-border,"

                + "       -fx-body-color;"

                + "  -fx-background-insets: 0 0 -1 0, 0, 1, 2;"

                + "  -fx-background-radius: 3px, 3px, 2px, 1px;");

I get this error:

WARNING: com.sun.javafx.css.parser.CSSParser declaration CSS Error parsing in-line style '-fx-background-color: linear-gradient(to bottom, #f2f2f2, #d4d4d4);   -fx-shadow-highlight-color,   -fx-outer-border,   -fx-inner-border,   -fx-body-color;  -fx-background-insets: 0 0, -1 0, 0, 1, 2;  -fx-background-radius: 3px, 3px, 2px, 1px;' from javafx.scene.Node$22@719c4850: Expected COLON at [1,100]

Can you tell me where I'm wrong?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 9 2013
Added on Aug 10 2013
4 comments
2,031 views