The CSS API was introduced in JavaFX 8 and extended in JavaFX 9 and 10 with 11 new classes. It's located in the package javafx.css and provides the following functionality:
- Make your own styleable properties
- Introduce and support new pseudo-class states
In the following example, we'll add a new style class to control the Clock sample we wrote in the previous chapters.