本文整理汇总了Java中javafx.stage.Stage.setFullScreenExitKeyCombination方法的典型用法代码示例。如果您正苦于以下问题:Java Stage.setFullScreenExitKeyCombination方法的具体用法?Java Stage.setFullScreenExitKeyCombination怎么用?Java Stage.setFullScreenExitKeyCombination使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类javafx.stage.Stage
的用法示例。
在下文中一共展示了Stage.setFullScreenExitKeyCombination方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createStage
import javafx.stage.Stage; //导入方法依赖的package包/类
/**
* Creates stage by calling createScene and with almost every properties of object.
*
* @see GenericView#createScene()
* @see javafx.stage.Stage
* @return
* @throws IOException
*/
public Stage createStage() throws IOException {
Stage stage = new Stage();
if (this.getTitle() != null) stage.setTitle(this.getTitle());
stage.setScene(this.createScene());
stage.setResizable(this.isResizable());
stage.setMaximized(this.isMaximized());
stage.setFullScreen(this.isFullscreen());
stage.setFullScreenExitKeyCombination(KeyCombination.NO_MATCH);
if (!this.isDecorated()) stage.initStyle(StageStyle.UNDECORATED);
if (this.isModal()) stage.initModality(Modality.APPLICATION_MODAL);
if (this.getIcon() != null)
stage.getIcons().add(this.getIcon());
if (this.getIcon() == null && GenericView.getGlobalIcon() != null)
stage.getIcons().add(GenericView.getGlobalIcon());
return stage;
}
示例2: start
import javafx.stage.Stage; //导入方法依赖的package包/类
@Override
public void start(Stage primaryStage) {
GameChooser gameManager = new GameChooser(primaryStage);
primaryStage.setScene(makeScene());
primaryStage.setFullScreenExitHint("");
primaryStage.setFullScreenExitKeyCombination(null);
primaryStage.show();
primaryStage.setFullScreen(true);
Animation myAnimation = makeAnimation(myActor, 100, 200, 100);
// start animation
myAnimation.play();
Animation myAnimation1 = makeAnimation(myActor1, 100, 200, 100);
// start animation
myAnimation1.play();
Animation myAnimation2 = makeAnimation(myActor2,100,240,140);
// start animation
myAnimation2.play();
}