I am stuck with the problem of removing objects from the scene. Here's my problem :
On mouse click, I create a circle and apply translation.
and on the second mouse click I want to clear it off.
So, to clear the scene, I tried,
MouseEvent {
root.getChildren.removeAll()
create circle
}
doesn't seem to work.Any ideas. I came across canvas, but I am not sure if I need it, because animating a circle works great, but not clearing it..