I need your help.
I'm trying to make some circle with label on it. After some searching, I found that to make a circle with label on it is to put it on a group.
The problem is now, as I'm trying to apply mouse dragging on that group, I don't get correct posX and posY for circle's new position. And it looks like that my dragg running with lags.
Here's my code, I hope you can get me some suggestions.
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:
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.