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!

Focus locks and Keyboard not responding

909976Jan 10 2012 — edited Jan 12 2012
Hello,
My name is Alex and I have a long time problem I hope someone can help me with.
We have a huge Java SE application.
We are using JDK 1.6.23.
In order to show popups of sorts including message we created our own Dialog windows based on JInternalFrame.
This frame can host JOptionPane for messages.
At times after displaying such a message, we reach a situation where the focus gets stuck on one of the Messages' buttons.
Once this happens there is no focus in our application and the keyboard stops responding the events.
Any attempt to put the focus on other components fails and it remains on the messages' button.
We've tried any possible idea that we had to kill the focus on that button and move it elsewhere (or just kill it) to allow the focus to be set manually, but it doesn't work.
We know that the trigger for this situation is caused because of some behavior in the application.
However, as I've mentioned above the application is huge and we've seen different situations that lead to this behavior.
We keep trying the change and fix the application but is doesn't cover the entire situation.
So the only way we can solve this is to detect it happening and then neutralizing it.
Alas, nothing gets the job done.
If anyone faced such a problem before and solved it or has any ideas how this can be solved please respond.

Thanks
Alex

Edited by: 906973 on 00:13 10/01/2012
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 9 2012
Added on Jan 10 2012
8 comments
266 views