Java 9 and 10 API for skins
Besides creating controls from scratch, you can skin existing controls. Before Java9, you would have to refer to an internal API, which is unreliable, and not possible in modular applications.
In Java9, all controls skins were moved to the public API and heavily reworked to minimize the use of other internal APIs. This allows for extending them and modifying to meet your needs.
However, note that creating a skin for JavaFX controls is a complex task and is required only if you need the control to look completely different. Like two skins in our ClockControl example above. For all other cases, there is usually enough customizing options in CSS and Control's API.
Also, studying these skins is a good way to understand ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access