Everything you see on the screen of your computer can be split into three large categories:
- Shapes
- Text
- Images
Thus, by being able to create each of these, you can build any UI in reasonable time. Let's start with JavaFX shapes.
Everything you see on the screen of your computer can be split into three large categories:
Thus, by being able to create each of these, you can build any UI in reasonable time. Let's start with JavaFX shapes.
The simplest object you can put on a scene is a shape. Under the javafx.scene.shape package, the JavaFX API supports a great range of shapes, from circles and rectangles to polygons and SVG paths. Most shapes can be divided then into two categories—lines and closed shapes. The properties that are shared among all shapes will be covered in the next section. After, we will review each shape's specific APIs.