-1
試圖開始使用DataFX ,,我想加載一個FXML視圖到另一個窗格,所以我有一個舞臺顯示,在用戶操作時將在顯示舞臺上添加另一個FXML視圖到窗格,DataFX - 如何獲得父級?
我通常做到這一點是這樣的:
fxmlLoader = constructFXMLLoader(FXMLPath);
root = (Parent) this.fxmlLoader.load();
private FXMLLoader constructFXMLLoader(String FXMLPath) {
FXMLLoader fxmlLoader = new FXMLLoader();
fxmlLoader.setLocation(getURL(stageFXMLName));
fxmlLoader.setBuilderFactory(new JavaFXBuilderFactory());
return fxmlLoader;
}
有我有根,所以我可以添加它曾經我想去的地方,問題是怎麼做,與DataFX
我做了一個快速的研究,但什麼也沒發現!