How to clone a scene node like GridPane?
960968Nov 21 2012 — edited Nov 26 2012HI 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