rectangle border thickness javaFx code example Example: javafx rectangle border size rectangle.setStrokeWidth(width);