WARNING: CSS Error parsing
David Grieve
david.grieve at oracle.com
Wed Oct 15 20:04:51 UTC 2014
There is no short-hand for border in JavaFX. You need to use both
-fx-border-color and -fx-border-style
See
http://docs.oracle.com/javase/8/javafx/api/javafx/scene/doc-files/cssref.html
On 10/15/14, 3:53 PM, Peter Penzov wrote:
> Hi,
> I tested Java 8u40. I get error when I run this part of the code:
>
> setStyle("-fx-background-color: linear-gradient(to bottom, #FAFAFA,
> #EAEAEA);"
> + " -fx-border: 2px solid; -fx-border-color: white;");
>
> X 15, 2014 10:33:53 PM com.sun.javafx.css.parser.CSSParser declaration
> WARNING: CSS Error parsing '*{-fx-background-color: linear-gradient(to
> bottom, #FAFAFA, #EAEAEA); -f
> x-border: 2px solid; -fx-border-color: white;}: expected series of <size>
> while parsing '-fx-border'
> at [1,82]
>
>
> Is this a bug or css code is wrong?
>
> BR,
> Peter
More information about the openjfx-dev
mailing list