【发布时间】:2017-06-15 10:48:07
【问题描述】:
我将我的锚窗格打印为 png:我在控制器中加载图像并写一些文本,而不是保存整个面板,但我不知道我必须使用哪些工具。
URL fxmlpath = this.getClass().getResource("/fxml/ListaNotaSpesa.fxml");
FXMLLoader loader = new FXMLLoader();
AnchorPane pane= loader.load(fxmlpath);
Scene scene = new Scene(pane);
primaryStage.setTitle("Inserisci Note Spese");
primaryStage.setScene(scene);
primaryStage.show();
【问题讨论】: