问题
I've a requirement to draw a few Circles and Curves connecting those circles. The circles have to be drawn in rows and columns fashion, so I guess using a GridPane would be a good choice. However, once all the circles have been drawn, how do I add curves to connect circles belonging to different columns on this GridPane?
I cannot use GridPane.add(node, row, column) for curves cuz that would add the curves to GridCells, neither does GridPane have .getchildren.add() method.
Is there a better design to this problem? Should I chose a different Pane that can help me plot circles in rows and columns along with the curves connecting them?
来源:https://stackoverflow.com/questions/43239975/draw-circles-and-curves-which-connect-those-circles