change the color of square in javafx code example Example: javafx how to change shape color setFill(Color.valueOf("F5D760"));