You can place the component that needs to be duplicated in a separate .fxml
file.
Then you can load the separate file as many times as needed adding the nodes to the appropriate root in the main scene.
Additionally you can edit an <fx:include source="..."/>
element to the main .fxml
file and include the separate .fxml
file. You can then still work with it in the JavaFX Builder.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…