Java 6,JFrame 始终停留在顶部

发布于 2024-09-29 02:59:32 字数 207 浏览 1 评论 0原文

这个问题似乎只在我从 1.5 升级到 1.6 后才出现

。 主 JFrame 似乎随机卡在 Windows 中所有其他应用程序的前面。

即使另一个设置为alwaysontop(true)的JDialog弹出也会在这个主JFrame后面。

关于可能导致此问题的原因有什么想法吗? / 有什么解决方案的想法吗? 以前在 Java 5 上从未遇到过这个问题。

This issue only seems to occur since I upgraded from 1.5 to 1.6

The main JFrame, randomly seems to get stuck infront of every other application in windows.

Even another JDialog popping up set to alwaysontop(true) will be behind this main JFrame.

Any ideas on what could be causing this issue? / Any ideas for solutions?
Never had this issue before on Java 5.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

公布 2024-10-06 02:59:33

抱歉,伙计们,似乎是一个用作屏幕拼接器的程序导致了 Java 程序出现问题。卸载屏幕拼接器后,该问题就不再出现。

Sorry guys it seems it was a program used as a screen splicer that was causing an issue with th Java program. Once the screen splicer was uninstalled, the issue has not occured.

丑疤怪 2024-10-06 02:59:33

我也有这个问题很长一段时间了,并且能够重现它。

当框架前面打开模态始终位于顶部的对话框时,单击该框架。该框架继承了始终位于顶部的行为,即使它没有设置为保持在顶部。

我在此处找到了一篇关于此行为的文章。

简单的解决方案:对话框不能是模态的并且始终同时位于顶部。模态性已经包含了始终在最上面的行为。

I also have this issue for a long time now and was able to reproduce it.

While a modal always-on-top dialog is open in front of the frame, click the frame. The frame inherits the always-on-top behaviour, even if it is not set to stay on top.

I found an article about this behaviour here.

The simple solution: Dialogs must not be modal and always on top at the same time. Modalarity already includes an always-on-top-behaviour.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文