Thanks a lot! That's really what I need.
I will need a lot of those circle on my application, so I expanded your solution to my needed.
I will have some of those "circles" connected with each other, and that line have to react to the change of circle's position. So, I wrote:
I'm trying to follow this one:
https://gist.github.com/jewelsea/1441960
My questions now:
What have I missed from that example in my code? My line doesn't react to the circle's move.
And, is that possible to directly get the centerX and centerY from class StackPane contain my circle?
Sorry for this newbie questions.
Thanks a lot in advance!