-
Bug
-
Resolution: Fixed
-
P3
-
fx2.1
CSS reference specifies that image border is drawn on top of the stroke border (See Region section). JavaFX does it in the reverse order.
http://docs.oracle.com/javafx/2.0/api/javafx/scene/doc-files/cssref.html#region
"Each Region consists of several layers, painted from bottom to top, in this order:
background fills
background images
contents
border strokes
border images"
StageBuilder.create()
.scene(
SceneBuilder.create()
.root(BorderPaneBuilder.create()
.style("-fx-border-image-source: url(\"file:///D:/JavaFX/repos/jfx/apps/internal/EmbeddedMediaPlayer/src/embeddedmediaplayer/images/popupWindow.png\");"
+ " -fx-border-image-width: 83 47 45 46;"
+ " -fx-border-color: red;"
+ " -fx-border-width: 83 47 45 46;"
)
.build())
.build())
.applyTo(stage);
stage.show();
http://docs.oracle.com/javafx/2.0/api/javafx/scene/doc-files/cssref.html#region
"Each Region consists of several layers, painted from bottom to top, in this order:
background fills
background images
contents
border strokes
border images"
StageBuilder.create()
.scene(
SceneBuilder.create()
.root(BorderPaneBuilder.create()
.style("-fx-border-image-source: url(\"file:///D:/JavaFX/repos/jfx/apps/internal/EmbeddedMediaPlayer/src/embeddedmediaplayer/images/popupWindow.png\");"
+ " -fx-border-image-width: 83 47 45 46;"
+ " -fx-border-color: red;"
+ " -fx-border-width: 83 47 45 46;"
)
.build())
.build())
.applyTo(stage);
stage.show();