I know that I can load an FXML file into a Parent object with the following:
parent = FXMLLoader.load(getClass().getResource(fxmlFile.getAbsolutePath()));
Now I want to do the exact opposite and save a Parent object as the root of an FXML file.
Does anyone know how to accomplish this?