public void showMainScreen() {
root = new StackPane();
root.getStylesheets().add(STYLE_FILE);
root.getStyleClass().add("main-window");
stage.setTitle("SpringFX");
scene = new Scene(root, WIDTH, HEIGHT);
stage.setScene(scene);
stage.setResizable(false);
stage.setOnHiding(new EventHandler<WindowEvent>() {
public void handle(WindowEvent event) {
System.exit(0);
// TODO you could add code to open an "are you sure you want to exit?" dialog
}
});
stage.show();
}
ScreensConfig.java 文件源码
java
阅读 31
收藏 0
点赞 0
评论 0
项目:springfx
作者:
评论列表
文章目录