setStyle("-fx-background-color: linear-gradient(to bottom, #FAFAFA,
#EAEAEA);"
+ " -fx-border-width: 2px; -fx-border-style: solid;
-fx-border-color: white;");
On 10/25/14, 9:02 AM, Peter Penzov wrote:
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 <mailto: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