How to create Geometric shapes in JavaFX 2.0?
geometry, java, javafx-2, shapes
Solution
Check out the API Docs: javafx.scene.shape.Shape. Sample usage: Draw Rectangle. Circle and Line examples also exist there.
Problem
I have a project i am working on JavaFX 2.0, and it is a Drawing Application. I created so far a Pen, and a pen size slider, color picker, eraser and Undo functions. I do not know yet how to create basic Shapes like Rectangle, Circles or Polygons. The shapes must hape custom dimension and i need to draw them into my scene. Can anyone help me out? I would really appreciate any help. Thanks a lot!