Save JavaFX scene into FXML file
问题 Anyone knows how to save a JavaFX scene into FXML file that can be loaded by the JavaFX FXMLLoader? The SceneBuilder allows to do it, but if I build the scene manually, how I can save it into FXML file? 回答1: If you mean build a fxml file from a running screen built in Java, the short answer is that you can't. The fxmlLoader is designed to work only to load files, it references the class XMLInputFactory but not the XMLOutputFactory. If you would like to do it by yourself, it is not only