Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Swing app OnFocus causes UI hang like situation.

843805Apr 26 2006 — edited Apr 26 2006
Hi

I have a swing application and I observe that upon focus in / focus out the UI stops responding to user actions and upon thread analysis found that this thing happens:

"AWT-Motif" daemon prio=1 tid=0x08288818 nid=0x55ff waiting for monitor entry [aa633000..aa633ccc]
at sun.awt.PostEventQueue.postEvent(Unknown Source)
- waiting to lock <0xac137d68> (a sun.awt.PostEventQueue)
at sun.awt.SunToolkit.postEvent(Unknown Source)
at sun.awt.motif.MComponentPeer.postEvent(Unknown Source)
at sun.awt.motif.MWindowPeer.handleWindowFocusIn(Unknown Source)
at sun.awt.motif.MToolkit.run(Native Method)
at java.lang.Thread.run(Unknown Source)

This thread keeps on waiting for some monitor to be acquired and once the focus is taken out all queued actions get executed. During this whole period the JAVA CPU consumption shows consistently above 90%. Any clue anybody ?

Thanks,
Sid.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 24 2006
Added on Apr 26 2006
1 comment
201 views