import javafx.application.Application; import javafx.scene.Group; import javafx.scene.Scene; import javafx.scene.shape.Polyline; import javafx.stage.Stage; /** * * @author Alexander Kouznetsov */ public class PolylineBoldJ2D extends Application { public static void main(String[] args) { launch(args); } @Override public void start(Stage stage) throws Exception { final Double[] points = new Double[]{ // 250.08661017403657, 128.64425796154384, 121.08828681612009, 29.611234421512457, 66.64689476803485, 254.95624818538624, 262.33054616258886, 48.98613440191389, 119.75512404575505, 187.45460645695206, 248.20347236565001, 115.8762113071294, 46.088672251312865, 16.853295147080065, 127.20341583828939, 42.98330568737692, 141.19595613140737, 230.79872266957534, 256.21201632693845, 34.64129164888687 66.64689476803485, 254.95624818538624, 262.33054616258886, 48.98613440191389, 119.75512404575505, 187.45460645695206, 248.20347236565001, 46.088672251312865, 42.98330568737692, 230.79872266957534, 256.21201632693845, 34.64129164888687 // 66.64689476803485, 254.95624818538624, 262.33054616258886, 48.98613440191389, 119.75512404575505, 187.45460645695206, 248.20347236565001, 46.088672251312865, 230.79872266957534, 34.64129164888687 }; final Polyline polyline = new Polyline(); polyline.getPoints().setAll(points); polyline.setStrokeWidth(29.70522588711436); // polyline.setStrokeLineJoin(StrokeLineJoin.ROUND); Group root = new Group(polyline); Scene scene = new Scene(root); stage.setScene(scene); stage.setVisible(true); } }