简体   繁体   English

Java 6,JFrame卡在alwaysontop上

[英]Java 6, JFrame stuck alwaysontop

This issue only seems to occur since I upgraded from 1.5 to 1.6 自从1.5升级到1.6后,似乎仅出现了此问题

The main JFrame, randomly seems to get stuck infront of every other application in windows. 主JFrame似乎卡在Windows中其他所有应用程序的前面。

Even another JDialog popping up set to alwaysontop(true) will be behind this main JFrame. 设置为alwaysontop(true)的另一个JDialog弹出窗口也将位于此主JFrame之后。

Any ideas on what could be causing this issue? 关于什么可能导致此问题的任何想法? / Any ideas for solutions? /对解决方案有何想法? Never had this issue before on Java 5. 在Java 5上从来没有这个问题。

Sorry guys it seems it was a program used as a screen splicer that was causing an issue with th Java program. 抱歉,似乎这是一个用作屏幕拼接器的程序,导致Java程序出现问题。 Once the screen splicer was uninstalled, the issue has not occured. 屏幕拼接器一旦卸载,就不会发生此问题。

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. 模态已经包括了始终保持最高的行为。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM