Prevent new JFrame from taking focus
I have a Java application running on Windows 7 which displays a JFrame based on data received from a server. The problem is that when I have focus on another application, whether it is Word, Notepad, or a browser, when my application displays a new JFrame, the JFrame grabs focus. This is especially annoying when I am typing in the other application and lose focus to this new JFrame. How can I prevent the new JFrame from grabbing focus?