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 clone a scene node like GridPane?

960968Nov 21 2012 — edited Nov 26 2012
HI All,
I have a Scene Graph with several containers of node objects.
One of them is a ScrollPane which contains GridPanes.
I am able to use SceneBuilder to create one Gridpane, and now trying to create the other GridPanes (1..n where n is dynamic) to show my data.
It seems to me that I have to do it in FX ontroller code as I don't know how to do this in ScendBuilder, or FXML
I was thinking about using the exiting GridPane (the first one) and try new GridPane(), and clone them one at a time.
Can somebody give me a hand to help create and clone these GridPane objects?
Actual code, or pseudo code will be very nice.
Thanks in advance, and happy Thanksgiving.
Ron
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 24 2012
Added on Nov 21 2012
3 comments
452 views