package demo; import javafx.application.Application; import javafx.scene.Group; import javafx.scene.Scene; import javafx.scene.layout.Pane; import javafx.scene.layout.VBox; import javafx.scene.paint.Color; import javafx.scene.shape.Arc; import javafx.stage.Stage; public class BugStroke1 extends Application { public static void main(String[] args) { launch(args); } Group root = new Group(); @Override public void start(Stage primaryStage) throws Exception { final double DEFAULT_ARC_X = 50; final double DEFAULT_ARC_Y = DEFAULT_ARC_X; final double DEFAULT_ARC_RADIUS_X = 25; // final double DEFAULT_ARC_RADIUS_Y = DEFAULT_ARC_RADIUS_X; final double DEFAULT_ARC_START_ANGLE = 45; final double DEFAULT_ARC_LENGTH = 270; Arc arc = new Arc(DEFAULT_ARC_X, DEFAULT_ARC_Y, DEFAULT_ARC_RADIUS_X, DEFAULT_ARC_RADIUS_X, DEFAULT_ARC_START_ANGLE, DEFAULT_ARC_LENGTH); Pane slot = new Pane(); slot.getChildren().add(arc); // arc.setStroke(Color.GREEN); arc.setFill(Color.YELLOW); Pane pane = new VBox(slot); pane.setPrefSize(180, 190); pane.setStyle("-fx-border-color: darkgray;"); Group root = new Group(pane); primaryStage.setScene(new Scene(root, 300, 300)); primaryStage.show(); } }