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

Dotted Border clipped to the outside

XMLWordPrintable

        In the testcase below the dotted border seems to be clipped to the outside of the pane. Only semicircles are drawn. Spacing seems to be wrong as well. This looked fine with Java 8u31, but is wrong in Jav 8u45. So seems to be a regression, which may be related to RT-38418.


        public class DottedBorderWrong extends Application {

        @Override
        public void start(Stage primaryStage) throws Exception {
        Group group = new Group();
        Scene scene = new Scene(group);
        primaryStage.setWidth(500);
        primaryStage.setHeight(500);

          Pane pane = new Pane();
        pane.setPrefSize(350, 350);
        pane.setLayoutX(55);
        pane.setLayoutY(55);
        pane.setStyle("-fx-border-width: 8; -fx-border-color: blue; -fx-border-style: dotted;");

        group.getChildren().add(pane);
        primaryStage.setScene(scene);
        primaryStage.show();
        }

        public static void main(String[] args) {
        launch(args);
        }

        }

          1. borderstyles.html
            1 kB
            Jim Graham
          2. DottedBorderJava8u31.png
            44 kB
            Kevin Rushforth
          3. DottedBorderJava8u45.png
            47 kB
            Kevin Rushforth
          4. RegionBorderTest.java
            5 kB
            Kevin Rushforth
          5. StrokeType_Dashing.png
            72 kB
            Kevin Rushforth

              kcr Kevin Rushforth
              sfuchsjfx Stefan Fuchs (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported: