本文整理汇总了Java中javafx.stage.Stage.isFullScreen方法的典型用法代码示例。如果您正苦于以下问题:Java Stage.isFullScreen方法的具体用法?Java Stage.isFullScreen怎么用?Java Stage.isFullScreen使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类javafx.stage.Stage
的用法示例。
在下文中一共展示了Stage.isFullScreen方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setUpOnStage
import javafx.stage.Stage; //导入方法依赖的package包/类
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");
}