Working with data

An FXML node resembles the MVC pattern very closely. FXML as a View and the Controller present by default, the only thing left is Model—a separate entity to store data and communicate with the outside part of an application.

It can be either a global context in a form of a Singleton class or a combination with one of the previous methods to set your model class to a controller.

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.