petr4ppc Well-Known Member Licensed User Longtime User Jan 1, 2015 #1 Dear friends, I wish happy new year!! Please, I am trying to change the color of rectangle. I put rectangle to layout in scene builder. Then in code I am using: B4X: rectangle.Style="-fx-setFill-color: Red;" but my code is not working http://docs.oracle.com/javase/8/javafx/api/javafx/scene/shape/Rectangle.html Please very much, help me. thank you p4ppc
Dear friends, I wish happy new year!! Please, I am trying to change the color of rectangle. I put rectangle to layout in scene builder. Then in code I am using: B4X: rectangle.Style="-fx-setFill-color: Red;" but my code is not working http://docs.oracle.com/javase/8/javafx/api/javafx/scene/shape/Rectangle.html Please very much, help me. thank you p4ppc
stevel05 Expert Licensed User Longtime User Jan 1, 2015 #2 For a rectangle, the CSS is: B4X: Rectangle.Style="-fx-fill: Red;" Upvote 0
petr4ppc Well-Known Member Licensed User Longtime User Jan 1, 2015 #3 stevel05 - thank you very much, GREAT!! Best regards p4ppc Upvote 0