<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>non-random ramble &#187; swing</title>
	<atom:link href="http://jimbarritt.com/non-random/category/code/swing/feed/" rel="self" type="application/rss+xml" />
	<link>http://jimbarritt.com/non-random</link>
	<description>adventures in code</description>
	<lastBuildDate>Tue, 20 Sep 2011 13:16:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>MacWidgets &#8211; Java Swing looking native on OS X</title>
		<link>http://jimbarritt.com/non-random/2009/11/15/macwidgets-java-swing-looking-native-on-os-x/</link>
		<comments>http://jimbarritt.com/non-random/2009/11/15/macwidgets-java-swing-looking-native-on-os-x/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 22:33:15 +0000</pubDate>
		<dc:creator>Jim Barritt</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[swing]]></category>
		<category><![CDATA[thoughtblog]]></category>

		<guid isPermaLink="false">http://jimbarritt.com/non-random/?p=241</guid>
		<description><![CDATA[I just discovered Exploding Pixels&#8217; MacWidgets. Its a beautiful library. Literally just pasted a couple of lines of code into my Java app and now it looks right at home on the os x desktop. I&#8217;m running JDK 1.6 on Leopard. Here is is in action: And here is the code (its been edited slightly [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://exploding-pixels.com/google_code/graphics/UnifiedToolBar.png" /></p>
<p>I just discovered <a href="http://explodingpixels.wordpress.com/">Exploding Pixels&#8217;</a> <a href="http://code.google.com/p/macwidgets/">MacWidgets</a>. Its a beautiful library. Literally just pasted a couple of lines of code into my Java app and now it looks right at home on the os x desktop. I&#8217;m running JDK 1.6 on Leopard. </p>
<p>Here is is in action:</p>
<p><img src="http://jimbarritt.com/non-random/wp-content/uploads/2009/11/macwidgets-demo.jpg" alt="macwidgets-demo" title="macwidgets-demo" width="730" height="535" class="alignnone size-full wp-image-268" /></p>
<p>And here is the code (its been edited slightly so may not copy and paste, but you get the idea) &#8230;</p>
<pre name='code' class='java:nogutter:nocontrols'>
&nbsp;
        MacUtils.makeWindowLeopardStyle(getRootPane());
&nbsp;
        UnifiedToolBar toolBar = new UnifiedToolBar();
&nbsp;
        JButton button = new JButton(&#8220;My Button&#8221;);
        button.putClientProperty(&#8220;JButton.buttonType&#8221;, &#8220;textured&#8221;);
        toolBar.addComponentToLeft(button);
&nbsp;
        getContentPane().add(toolBar.getComponent(), BorderLayout.NORTH);
&nbsp;
        BottomBar bottomBar = new BottomBar(BottomBarSize.SMALL);
        bottomBar.addComponentToLeft(MacWidgetFactory.createEmphasizedLabel(&#8221; Status&#8221;));
&nbsp;
        getContentPane().add(bottomBar.getComponent(), BorderLayout.SOUTH);
&nbsp;
</pre>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fjimbarritt.com%2Fnon-random%2F2009%2F11%2F15%2Fmacwidgets-java-swing-looking-native-on-os-x%2F&amp;title=MacWidgets%20%26%238211%3B%20Java%20Swing%20looking%20native%20on%20OS%20X"><img src="http://jimbarritt.com/non-random/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://jimbarritt.com/non-random/2009/11/15/macwidgets-java-swing-looking-native-on-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

