<?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: Swing EDT and UIManager Initialization Question</title>
	<atom:link href="http://stuffthathappens.com/blog/2007/10/23/swing-edt-and-uimanager-initialization-question/feed/" rel="self" type="application/rss+xml" />
	<link>http://stuffthathappens.com/blog/2007/10/23/swing-edt-and-uimanager-initialization-question/</link>
	<description>Technology and Geek Stuff by Eric Burke</description>
	<lastBuildDate>Mon, 26 Jul 2010 14:36:32 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Paranoid</title>
		<link>http://stuffthathappens.com/blog/2007/10/23/swing-edt-and-uimanager-initialization-question/comment-page-1/#comment-7616</link>
		<dc:creator>Paranoid</dc:creator>
		<pubDate>Wed, 19 Mar 2008 14:09:51 +0000</pubDate>
		<guid isPermaLink="false">http://stuffthathappens.com/blog/2007/10/23/swing-edt-and-uimanager-initialization-question/#comment-7616</guid>
		<description>I know this article is very old, but can&#039;t stay without replying.
As i understand, only operations with Graphics or Graphics2D need to be performed from EDT, because Graphics is not synchronized. Almost all other things, including JTable&#039;s repaints (marking of dirty regions for repaint manager) and GUI creation can be done from elsewhere.</description>
		<content:encoded><![CDATA[<p>I know this article is very old, but can&#8217;t stay without replying.<br />
As i understand, only operations with Graphics or Graphics2D need to be performed from EDT, because Graphics is not synchronized. Almost all other things, including JTable&#8217;s repaints (marking of dirty regions for repaint manager) and GUI creation can be done from elsewhere.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Burke</title>
		<link>http://stuffthathappens.com/blog/2007/10/23/swing-edt-and-uimanager-initialization-question/comment-page-1/#comment-538</link>
		<dc:creator>Eric Burke</dc:creator>
		<pubDate>Tue, 23 Oct 2007 17:54:01 +0000</pubDate>
		<guid isPermaLink="false">http://stuffthathappens.com/blog/2007/10/23/swing-edt-and-uimanager-initialization-question/#comment-538</guid>
		<description>But if UIManager is not designed for thread safety, isn&#039;t there a possibility of memory visibility problems, since we are creating objects in the main thread and then accessing them from the event dispatch thread? Seems like UIManager (and everything it touches) would have to be explicitly synchronized, or use volatile, or some similar mechanism, to ensure visibility across threads.</description>
		<content:encoded><![CDATA[<p>But if UIManager is not designed for thread safety, isn&#8217;t there a possibility of memory visibility problems, since we are creating objects in the main thread and then accessing them from the event dispatch thread? Seems like UIManager (and everything it touches) would have to be explicitly synchronized, or use volatile, or some similar mechanism, to ensure visibility across threads.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: codepope</title>
		<link>http://stuffthathappens.com/blog/2007/10/23/swing-edt-and-uimanager-initialization-question/comment-page-1/#comment-537</link>
		<dc:creator>codepope</dc:creator>
		<pubDate>Tue, 23 Oct 2007 16:23:39 +0000</pubDate>
		<guid isPermaLink="false">http://stuffthathappens.com/blog/2007/10/23/swing-edt-and-uimanager-initialization-question/#comment-537</guid>
		<description>From my intuition, there is no issue calling UIManager,setLookAndFeel() at startup; it only alters the default values in the library and doesn&#039;t trigger any UI changes as there is at that point no UI to be changed. Now, when you do have a UI, then the UIManager.setLookAndFeel can still be done off the EDT, but SwingUtilities.updateComponentTreeUI(...) to redraw the UI should be on the EDT. 

Both examples are therefore correct, as they both invoke before there&#039;s any UI in existence.</description>
		<content:encoded><![CDATA[<p>From my intuition, there is no issue calling UIManager,setLookAndFeel() at startup; it only alters the default values in the library and doesn&#8217;t trigger any UI changes as there is at that point no UI to be changed. Now, when you do have a UI, then the UIManager.setLookAndFeel can still be done off the EDT, but SwingUtilities.updateComponentTreeUI(&#8230;) to redraw the UI should be on the EDT. </p>
<p>Both examples are therefore correct, as they both invoke before there&#8217;s any UI in existence.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.218 seconds -->
