polygon set style java code example Example: javafx polygon Polygon polygon = new Polygon(doubleArray);