I'm trying to create an application, which will be always on top and always receiving keyboard input. There was no problem with setting the Jframe on top (setAlwaysOnTop(true)), but I have some problems with the keyboard. Whenever a windows popouts (for instance Windows update or AV update), although the JFrame is still on top it looses keyboard focus. Even minimizing & maximizing (with alt + tab) doesn't help and I need to shut down and rerun the application. Is there any elegant and simple way to set pernament keyboard focus on the JFrame? I'm starting the application through the command line.
Thanks in advance for Your help :)