如何设置JavaFX 2全屏消息的样式? [英] How to style JavaFX 2 Fullscreen message?

查看:86
本文介绍了如何设置JavaFX 2全屏消息的样式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在JavaFX中进入全屏模式会导致显示一条巨大消息,告诉用户可以按ESC退出此模式.这不仅使我的应用程序摆脱了桌面化"的感觉,而且看起来也很丑陋.

Going to Fullscreen mode in JavaFX causes a giant message telling the user that he can leave this mode pressing ESC. Not only this takes the "desktopish" feeling off my application, it also looks ugly.

我想这条消息不应该被压制,所以我希望我至少可以打上它的烙印.那么,我该如何设计呢?

I guess this message is not ment to be suppressed, so my hope is that i can at least brand it. So, how can i style it?

推荐答案

有人要求允许将受信任的应用程序禁用全屏覆盖警告并禁用退出ESC"行为仅触摸屏-按ESC即可退出全屏模式.不适用.从JavaFX 2.2开始,这两个请求均未实现.

There is a requests to Allow trusted apps to disable the fullscreen overlay warning and disable the "Exit on ESC" behavior and Touch Screen only - Press ESC to exit full-screen mode. does not apply. Neither request has been implemented as of JavaFX 2.2.

我没有找到任何允许设置消息样式的请求.您可以在JavaFX Runtime项目下创建一个,但是由于潜在的安全隐患,我认为它会被拒绝.

There are no requests to allow the message to be styled that I could find. You could create one under the JavaFX Runtime project, but I think it would be rejected due to potential security concerns.

这篇关于如何设置JavaFX 2全屏消息的样式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆