public MainWindow (LangLoader langLoader) {
super("Leeks & Dragons - Dialog Tool", 820, 640, "./data/ui/mainwindow.fxml", new MainWindowController(langLoader));
//add handler which will be executed, if user closes window
this.stage.setOnCloseRequest(new EventHandler<WindowEvent>() {
@Override
public void handle(WindowEvent event) {
System.exit(0);
}
});
//set window position to center and focus window
this.stage.centerOnScreen();
this.stage.requestFocus();
//set window visible
this.stage.show();
}
MainWindow.java 文件源码
java
阅读 28
收藏 0
点赞 0
评论 0
项目:dialog-tool
作者:
评论列表
文章目录