GraphicalContext.java 文件源码

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

项目:GazePlay 作者:
public void setUpOnStage(Stage stage) {
    stage.setTitle("GazePlay");

    // setting the scene again will exit fullscreen
    // so we need to backup the fullscreen status, and restore it after the scene has been set
    boolean fullscreen = stage.isFullScreen();
    stage.setScene(scene);
    stage.setFullScreen(fullscreen);

    stage.setOnCloseRequest((WindowEvent we) -> stage.close());

    final Configuration config = ConfigurationBuilder.createFromPropertiesResource().build();
    CssUtil.setPreferredStylesheets(config, scene);

    stage.show();
    log.info("Finished setup stage with the game scene");
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号