This content has been marked as final. Show 2 replies
You can implement the FocusListener interface. WhenThe call requestFocusInWindow is not helping, perhaps even making it worse.
the first JFrame gains focus, call
text.requestFocusInWindow(). I hope this helps.
The problem seems to be that I am in the situation where the call
is returning the expected Component. The problem is that the KeyListener class that is registered with the Component is not being called when a key is being pressed.
The issue is that I have a component that has the keyboard focus, but the KeyListener class
is not responding.
This seems to be a linux only problem which makes it only mysterious.