I don't want to load a FXML file twice. It is possible to clone/copy a Node or Group? In JavaFX 1.1 there is a utility class called Duplicater -- is there a pendant in Java FX 2.x?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Ironically old Duplicater
was duplicating FXD formatted nodes. And FXD was substituted with FXML.
So reusing FXML file is a JavaFX2 successor of Duplicater
.