始终在顶部窗口 [英] ALWAYS on top window

查看:59
本文介绍了始终在顶部窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种解决方案,以使JFrame始终处​​于最佳状态,而我一直指的是永远.

I'm searching for a solution in order to keep a JFrame always on top and with always I really mean always.

setAlwaysOnTop( true );

当我以全屏模式开始游戏时,此功能将无效.我知道您通常不希望您的窗户停留在顶部,但在这种情况下,这是必需的.

This won't work when I'm starting a game in fullscreen mode. I know you normally don't want your windows to stay on top but in this case it's required.

推荐答案

无法完成.

例如,即使将Windows任务管理器设置为始终在最前面",也会被全屏应用程序掩盖.

For example, the Windows Task Manager, even when set to Always on Top will get covered up by full-screen applications.

这是由于以下事实:全屏应用程序通常使用不同的图形上下文并且无法覆盖.

This is due to the fact that full-screen applications typically use a different graphics context and can't be overlayed.

这篇关于始终在顶部窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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