37.7 JavaFX 9 Skin APIs
In Chapter 22, JavaFX Graphics and Multimedia, we demonstrated how to format JavaFX objects using Cascading Style Sheets (CSS) technology which was originally developed for styling the elements in web pages. CSS allows you to specify presentation (e.g., fonts, spacing, sizes, colors, positioning) separately from the GUI’s structure and content (layout containers, shapes, text, GUI components, etc.). If a JavaFX GUI’s presentation is determined entirely by a style sheet (which specifies the rules for styling the GUI), you can simply swap in a new style sheet—sometimes called a theme or a skin—to change the GUI’s appearance.
Each JavaFX control also has a skin class that determines its default appearance and how the user ...
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