Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to update the BorderPane Center Region

8f00c58a-62e3-44ce-8f6b-89d21ae2ff5cNov 30 2015 — edited Nov 30 2015

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.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 28 2015
Added on Nov 30 2015
1 comment
1,255 views