Hi David, Could you please show me the complete example? BR, Plamen
On Wed, Oct 15, 2014 at 11:04 PM, David Grieve <david.gri...@oracle.com> wrote: > 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 >> > >