- Mastering JavaFX 10
- Sergey Grinev
- 35字
- 2021-06-25 21:21:56
Controlling Shape's color
Shape can have two colors: one for the interior (setFill method) and one for the border (setStroke). Color in JavaFX is handled by the Paint API, which is worth a deeper look: