码上敲享录 > javafx和scene builder > javafx state关闭事件

javafx state关闭事件

上一章章节目录下一章 2021-09-03已有162人阅读 评论(0)

URL location = getClass().getResource("/view/ResultStage.fxml");
FXMLLoader fxmlLoader = new FXMLLoader();
fxmlLoader.setLocation(location);
AnchorPane settings = fxmlLoader.load();
Stage settingsStage = new Stage();
settingsStage.setTitle("报告查询结果");
FullScreenUtil.fullScreen(settingsStage, PropertiesAttrUtil.getFullScreen());
settingsStage.setScene(new Scene(settings));
ResultController resultController = fxmlLoader.getController();
resultController.init(list);

settingsStage.show();


settingsStage.setOnCloseRequest(event -> { //手动关闭窗体
//System.out.println("Stage is closing");

});


向大家推荐《Activiti工作流实战教程》:https://xiaozhuanlan.com/activiti
0

有建议,请留言!

  • *您的姓名:

  • *所在城市:

  • *您的联系电话:

    *您的QQ:

  • 咨询问题:

  • 提 交