JavaFX - How to select one shape to do animation?
问题 I have the following circle and I can play animation on it: Suppose I want to add another shape, such as a rectangle. How I can select between the shapes (circle/rectangle) through a mouse-click to do the animation on the shape being selected. Could someone please give me some guidelines/examples as to how I would go about this. Thank you! Program Code: import javafx.animation.PathTransition; import javafx.application.Application; import static javafx.application.Application.launch; import