Duplicate/Clone Node in JavaFX 2.0

2019-06-18 04:23发布

问题:

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.



标签: javafx-2