Restore Focus To Java Applet When Browser/tab Gains Focus
I have an applet running in a browser tab. When I switch to a different tab in the same browser, or ALT-TAB to another application entirely, the applet loses focus. When I return t
Solution 1:
I believe java has the requestFocus()
method. It's in the Component class, so your JPanel or whatever you are using may be able to use this.
For the javascript part, this is what a quick googling reveals: http://www.raditha.com/java/javascript.php. I hope it helps you!
Post a Comment for "Restore Focus To Java Applet When Browser/tab Gains Focus"