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