美文网首页
Lesson5 Platform类

Lesson5 Platform类

作者: 大丰87 | 来源:发表于2019-05-12 01:22 被阅读0次

Platform.runLater()方法

Platform.implicitexit()方法,效果如下

    Platform.setImplicitExit(false);//当这里设置为false时,程序所有的窗口关闭后,程序也不会退出,需要执行exit()才能退出
    primaryStage.show();                //为true时,则程序所有的窗口关闭后,程序也立即退出.
    Platform.exit();

Platform.isSupported​(ConditionalFeature feature) //查询平台是否支持特定条件功能。具体查询API

System.out.println(Platform.isSupported(ConditionalFeature.SCENE3D));//是否支持3D

相关文章

网友评论

      本文标题:Lesson5 Platform类

      本文链接:https://www.haomeiwen.com/subject/zbdqaqtx.html