ScreensConfig.java 文件源码

java
阅读 31 收藏 0 点赞 0 评论 0

项目:springfx 作者:
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();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号