<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: SwingUtilities.invokeAndWait&#8230; doesn&#8217;t.</title>
	<atom:link href="http:///2008/02/21/invokeandnotwaiting/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.palantirtech.com/2008/02/21/invokeandnotwaiting/</link>
	<description>Articles from the Engineering Group at Palantir Technologies</description>
	<lastBuildDate>Tue, 24 Jan 2012 09:51:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Rodrigo</title>
		<link>http://blog.palantirtech.com/2008/02/21/invokeandnotwaiting/comment-page-1/#comment-1063</link>
		<dc:creator>Rodrigo</dc:creator>
		<pubDate>Thu, 12 Jan 2012 14:46:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.palantirtech.com/2008/02/21/invokeandnotwaiting/#comment-1063</guid>
		<description>I wanted to note that invokeLater(Runnable) doesn&#039;t throw an exception if run inside the EDT. Actually, the javadoc says explicitly (even in java 1.4 -- see http://docs.oracle.com/javase/1.4.2/docs/api/javax/swing/SwingUtilities.html#invokeLater%28java.lang.Runnable%29):

&quot;If invokeLater is called from the event dispatching thread ... (the runnable) will still be deferred until all pending events have been processed.&quot;

So, actually the implementation of the runOnEDT(Runnable) method above doesn&#039;t prevent an exception, but actually affects how the runnable is going to be executed on the EDT: if we&#039;re on the EDT it is executed immediately; otherwise it&#039;s queued.</description>
		<content:encoded><![CDATA[<p>I wanted to note that invokeLater(Runnable) doesn&#8217;t throw an exception if run inside the EDT. Actually, the javadoc says explicitly (even in java 1.4 &#8212; see <a href="http://docs.oracle.com/javase/1.4.2/docs/api/javax/swing/SwingUtilities.html#invokeLater%28java.lang.Runnable%29" rel="nofollow">http://docs.oracle.com/javase/1.4.2/docs/api/javax/swing/SwingUtilities.html#invokeLater%28java.lang.Runnable%29</a>):</p>
<p>&#8220;If invokeLater is called from the event dispatching thread &#8230; (the runnable) will still be deferred until all pending events have been processed.&#8221;</p>
<p>So, actually the implementation of the runOnEDT(Runnable) method above doesn&#8217;t prevent an exception, but actually affects how the runnable is going to be executed on the EDT: if we&#8217;re on the EDT it is executed immediately; otherwise it&#8217;s queued.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

