The following css ( and any combination of the attributes) works fine in version 1.1
"javafx.scene.shape.Rectangle" {
strokeLineCap: BUTT; /* BUTT, ROUND, SQUARE */
strokeLineJoin: BEVEL; /* BEVEL, MITER, ROUND */
}
but throws the following in javafx 1.2
java.lang.IllegalArgumentException: unsupported type: JavaType[javafx.scene.shape.StrokeLineJoin] BEVEL
at com.sun.stylesheet.types.TypeManager.convertFromString(TypeManager.java:411)
at com.sun.stylesheet.styleable.DefaultStyleable.convertPropertyFromString(DefaultStyleable.java:158)
at com.sun.stylesheet.Declaration.convertValue(Declaration.java:76)
at com.sun.stylesheet.Declaration.applyTo(Declaration.java:91)
at com.sun.stylesheet.Rule.applyTo(Rule.java:221)
at com.sun.stylesheet.Stylesheet.applyTo(Stylesheet.java:269)
at com.sun.stylesheet.Stylesheet.applyTo(Stylesheet.java:274)
at com.sun.stylesheet.Stylesheet.applyTo(Stylesheet.java:274)
at com.sun.stylesheet.Stylesheet.applyTo(Stylesheet.java:274)
at com.sun.stylesheet.Stylesheet.applyTo(Stylesheet.java:251)
at javafx.scene.Scene.applyStylesheets(Scene.fx:332)
at javafx.scene.Scene.userInit$(Scene.fx:306)
at com.sun.javafx.runtime.FXBase.complete$(FXBase.java:56)
at javafxapp.Main.javafx$run$(Main.fx:27)
at javafxapp.Main.javafx$run$(Main.fx:27)
"javafx.scene.shape.Rectangle" {
strokeLineCap: BUTT; /* BUTT, ROUND, SQUARE */
strokeLineJoin: BEVEL; /* BEVEL, MITER, ROUND */
}
but throws the following in javafx 1.2
java.lang.IllegalArgumentException: unsupported type: JavaType[javafx.scene.shape.StrokeLineJoin] BEVEL
at com.sun.stylesheet.types.TypeManager.convertFromString(TypeManager.java:411)
at com.sun.stylesheet.styleable.DefaultStyleable.convertPropertyFromString(DefaultStyleable.java:158)
at com.sun.stylesheet.Declaration.convertValue(Declaration.java:76)
at com.sun.stylesheet.Declaration.applyTo(Declaration.java:91)
at com.sun.stylesheet.Rule.applyTo(Rule.java:221)
at com.sun.stylesheet.Stylesheet.applyTo(Stylesheet.java:269)
at com.sun.stylesheet.Stylesheet.applyTo(Stylesheet.java:274)
at com.sun.stylesheet.Stylesheet.applyTo(Stylesheet.java:274)
at com.sun.stylesheet.Stylesheet.applyTo(Stylesheet.java:274)
at com.sun.stylesheet.Stylesheet.applyTo(Stylesheet.java:251)
at javafx.scene.Scene.applyStylesheets(Scene.fx:332)
at javafx.scene.Scene.userInit$(Scene.fx:306)
at com.sun.javafx.runtime.FXBase.complete$(FXBase.java:56)
at javafxapp.Main.javafx$run$(Main.fx:27)
at javafxapp.Main.javafx$run$(Main.fx:27)