Dynamic Shapes in FXML
posted 2 years ago
I have a JavaFX Application with the layout done in FXML. Currently it has a small controller to receive inputs from the TextFields and animate a rectangle based on those inputs, this rectangle is hard coded into the FXML (called "box") which really isn't what I need, that was for testing purposes only. What I really need to do is loop through an array of objects and create rectangles for each of those objects based on their properties and then be able to animate those. What is the best way to go about doing this?