Applying styles to JavaFX nodes

Loading a CSS file is not the only option to work with styles. You can also set them directly through an API or specify them in the FXML file. And while this gives additional flexibility, it also requires you to be careful about the priorities of different approaches.

We'll review all the options and see how they interact in the next sections.

Get Mastering JavaFX 10 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.