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.