对于JFXtras窗口对象的内容,我们应该使用集成开发环境中的代码部分吗?
Window w = new Window("My Window#"+counter);
w.getContentPane().getChildren().add(new Label("Content... \nof the window#"));
root.getChildren().add(w);例如,我用场景生成器准备了一个fxml文档,我想让它显示在jfxtras窗口中。但我不能把窗户做成舞台。
发布于 2015-01-30 05:58:29
在Node中加载fxml并设置为内容
Node node = FXMLLoader.load(getClass().getResource("yourFxml.fxml"));
w.getContentPane().getChildren().add(node);https://stackoverflow.com/questions/28217560
复制相似问题