I was going through the following tutorial, and wanted to find out how I will be able to change the center region in the BorderPane:
Working With Layouts in JavaFX: Using Built-in Layout Panes | JavaFX 2 Tutorials and Documentation
The tutorial puts in 4 hyperlink buttons in the left region to control what is displayed in the center region (a GridPane). But throughout the tutorial, the center region is always displaying the default selected "Sales" hyperlink in the center region GridPane. The tutorial does not provide the information on how to update the center region GridPane when the other hyperlink buttons are pressed, e.g. a "Marketing" GridPane when the "Marketing" hyperlink is pressed.
How can I update the center GridPane based on the hyperlink in context in the left region - an example would be very much appreciated, specially if implementing the hierarchy using scenebuilder fxml. Thanks.