0

I'm writing a little program where you can create different (JavaFX) shapes like rectangles, circles, ellipses, lines and polygons. After starting the program or creating a shape, the saved shapes (they are saved in a file system) are being added to a pane with the following line of code:

pane.getChildren().add(rectangle1)

My question is: What is a good approach to be able to drag these shapes around on the pane and also be able to adjust their properties? I am using the SceneBuilder.

I am relative new to programming, especially to JavaFX and SceneBuilder so I'm really not sure about the approach here and if I should change the way I project the shape objects in the first place.

Thanks to anyone helping me out!

Abra
  • 19,142
  • 7
  • 29
  • 41

0 Answers0