简体   繁体   中英

Java 6, JFrame stuck alwaysontop

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.

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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