Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8096616

Border image and border stroke rendering order

    Details

      Description

      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();

        Attachments

          Activity

            People

            • Assignee:
              rbair Richard Bair
              Reporter:
              mrkam Alexander Kuznetcov (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: