Hi,<br><br>thanks for your reply.<br><br><div><span class="gmail_quote">2007/11/14, Glynn Clements <<a href="mailto:email@example.com">firstname.lastname@example.org</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
...<br><br>More generally, you would be much better off not using a separate<br>event loop. Why can't you have the main event loop notify your code of<br>FocusIn events?</blockquote><div><br></div></div>Well, the event loop is an endless loop and blocks on the XNextEvent() call. This actually blocks the whole JVM process because that native event loop is called from it and all Java threads run within the same Java system process. So, this would be unacceptable since our program would simply stop running.