JApplet unable to regain focus

Hi, I have a game I’m making, that when the user switches tabs, the game loses focus. (which is good)
But when I go back to the tab I was on, I cannot regain focus by clicking on the applet. This only happens in Linux (Windows works fine)
I could request applet focus each frame, but that is not good when the user is in a different tab because it steals the keyboard and they can’t type.
Can anyone help me?
thanks, :slight_smile:
roland

Did you already setFocusable(true)? Maybe try to make a stripped down JApplet that displays this behavior.

Thanks for the reply, I figured out that I just had to call requestFocus() when I get a mouse pressed event for linux and it works.