<?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: Skinning a Slider with Nimbus</title>
	<atom:link href="http://www.jasperpotts.com/blog/2008/08/skinning-a-slider-with-nimbus/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jasperpotts.com/blog/2008/08/skinning-a-slider-with-nimbus/</link>
	<description>Jasper Potts's Blog on Java and Life</description>
	<lastBuildDate>Sun, 07 Mar 2010 11:09:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Daniel Rosenstark (yar)</title>
		<link>http://www.jasperpotts.com/blog/2008/08/skinning-a-slider-with-nimbus/comment-page-1/#comment-1934</link>
		<dc:creator>Daniel Rosenstark (yar)</dc:creator>
		<pubDate>Sun, 07 Mar 2010 11:09:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.jasperpotts.com/blog/2008/08/skinning-a-slider-with-nimbus/#comment-1934</guid>
		<description>I mean, it runs. On OSX the sliders are normal JSliders :(</description>
		<content:encoded><![CDATA[<p>I mean, it runs. On OSX the sliders are normal JSliders <img src='http://www.jasperpotts.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Rosenstark (yar)</title>
		<link>http://www.jasperpotts.com/blog/2008/08/skinning-a-slider-with-nimbus/comment-page-1/#comment-1933</link>
		<dc:creator>Daniel Rosenstark (yar)</dc:creator>
		<pubDate>Sun, 07 Mar 2010 11:05:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.jasperpotts.com/blog/2008/08/skinning-a-slider-with-nimbus/#comment-1933</guid>
		<description>To get the demo to run I ended up changing this

                    if (((String)entry.getKey()).startsWith(&quot;Slider&quot;)){

to this

                    if (entry.getKey() instanceof String &amp;&amp; ((String)entry.getKey()).startsWith(&quot;Slider&quot;)){

and it works.</description>
		<content:encoded><![CDATA[<p>To get the demo to run I ended up changing this</p>
<p>                    if (((String)entry.getKey()).startsWith(&#8220;Slider&#8221;)){</p>
<p>to this</p>
<p>                    if (entry.getKey() instanceof String &amp;&amp; ((String)entry.getKey()).startsWith(&#8220;Slider&#8221;)){</p>
<p>and it works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew U</title>
		<link>http://www.jasperpotts.com/blog/2008/08/skinning-a-slider-with-nimbus/comment-page-1/#comment-1914</link>
		<dc:creator>Andrew U</dc:creator>
		<pubDate>Wed, 20 Jan 2010 21:25:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.jasperpotts.com/blog/2008/08/skinning-a-slider-with-nimbus/#comment-1914</guid>
		<description>Hi all,

I ran into a few problems with the example as published. The first being a class cast exception on line 49 where:

if (((String)entry.getKey()).startsWith(&quot;Slider&quot;)) {
    ...
}

... it appears to have run to a point, but then died ... 

Since I am trying to use this example to get information on how to customize the TabbedPane.TabbedPaneTabArea, I commented out this if statement so that I could see all of the entries -&gt;

I then switched the order of the two ...putClientProperty(... ( lines 88 and 89 ) statements.

All worked well after that.

I hope that this helps someone else running across this. Thank you for the example, I hope to figure out how to customize the tabs&#039; tab areas now!

~a~</description>
		<content:encoded><![CDATA[<p>Hi all,</p>
<p>I ran into a few problems with the example as published. The first being a class cast exception on line 49 where:</p>
<p>if (((String)entry.getKey()).startsWith(&#8220;Slider&#8221;)) {<br />
    &#8230;<br />
}</p>
<p>&#8230; it appears to have run to a point, but then died &#8230; </p>
<p>Since I am trying to use this example to get information on how to customize the TabbedPane.TabbedPaneTabArea, I commented out this if statement so that I could see all of the entries -&gt;</p>
<p>I then switched the order of the two &#8230;putClientProperty(&#8230; ( lines 88 and 89 ) statements.</p>
<p>All worked well after that.</p>
<p>I hope that this helps someone else running across this. Thank you for the example, I hope to figure out how to customize the tabs&#8217; tab areas now!</p>
<p>~a~</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jasper Potts</title>
		<link>http://www.jasperpotts.com/blog/2008/08/skinning-a-slider-with-nimbus/comment-page-1/#comment-1902</link>
		<dc:creator>Jasper Potts</dc:creator>
		<pubDate>Tue, 15 Dec 2009 15:25:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.jasperpotts.com/blog/2008/08/skinning-a-slider-with-nimbus/#comment-1902</guid>
		<description>John: I think what you are doing is right, there are two things to check, the order of the two lines:

....putClientProperty(”Nimbus.Overrides.InheritDefaults”, Boolean.TRUE);
..,.putClientProperty(”Nimbus.Overrides”, properties);

Effects things and I can&#039;t remember the correct order off the top of my head. The other thing is you may need to call updateUI() on the component after setting them to force Nimbus to clear any cached values. Hope that helps :)</description>
		<content:encoded><![CDATA[<p>John: I think what you are doing is right, there are two things to check, the order of the two lines:</p>
<p>&#8230;.putClientProperty(”Nimbus.Overrides.InheritDefaults”, Boolean.TRUE);<br />
..,.putClientProperty(”Nimbus.Overrides”, properties);</p>
<p>Effects things and I can&#8217;t remember the correct order off the top of my head. The other thing is you may need to call updateUI() on the component after setting them to force Nimbus to clear any cached values. Hope that helps <img src='http://www.jasperpotts.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John M</title>
		<link>http://www.jasperpotts.com/blog/2008/08/skinning-a-slider-with-nimbus/comment-page-1/#comment-1901</link>
		<dc:creator>John M</dc:creator>
		<pubDate>Tue, 15 Dec 2009 14:34:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.jasperpotts.com/blog/2008/08/skinning-a-slider-with-nimbus/#comment-1901</guid>
		<description>My apologies for the cut and paste error. A correction from the above code: the &#039;properties&#039; argument to the putClientProperty methods should have been &#039;dialogTheme&#039;.</description>
		<content:encoded><![CDATA[<p>My apologies for the cut and paste error. A correction from the above code: the &#8216;properties&#8217; argument to the putClientProperty methods should have been &#8216;dialogTheme&#8217;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John M</title>
		<link>http://www.jasperpotts.com/blog/2008/08/skinning-a-slider-with-nimbus/comment-page-1/#comment-1900</link>
		<dc:creator>John M</dc:creator>
		<pubDate>Tue, 15 Dec 2009 14:30:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.jasperpotts.com/blog/2008/08/skinning-a-slider-with-nimbus/#comment-1900</guid>
		<description>Is it possible to color theme all the content of a dialog differently than that of the main application frame? I am trying to apply new values for the core nimbus colors (nimbusBase, control, text, etc) to a UIDefaults map that I supply to the contents of the dialog by settings the Nimbus.Overrides client property. It does not seem to work.

Here is the basics of the code I am using on JDK 1.6.0 Update 17:

// Set some wacky colors for the frame&#039;s theme
UIDefaults defaults = UIManager.getDefaults();
defaults.put(&quot;nimbusBase&quot;, new Color(0, 255, 0));
defaults.put(&quot;nimbusBlueGrey&quot;, new Color(200, 0, 0));
defaults.put(&quot;control&quot;, Color.black);
defaults.put(&quot;text&quot;, Color.black);

// Omitted: Create components and add them to the frame. Pack and show the frame.

UIDefaults dialogTheme = new UIDefaults();
dialogTheme.put(&quot;nimbusBase&quot;, new Color(61, 0, 0));
dialogTheme.put(&quot;nimbusBlueGrey&quot;, new Color(0, 0, 200));
dialogTheme.put(&quot;control&quot;, Color.white);
dialogTheme.put(&quot;text&quot;, Color.pink);

JButton dialogButton = new JButton(&quot;Hello&quot;);
dialogButton.putClientProperty(&quot;Nimbus.Overrides.InheritDefaults&quot;, Boolean.TRUE);
dialogButton.putClientProperty(&quot;Nimbus.Overrides&quot;, properties);

JPanel dialogPanel = new JPanel();
dialogPanel.putClientProperty(&quot;Nimbus.Overrides.InheritDefaults&quot;, Boolean.TRUE);
dialogPanel.putClientProperty(&quot;Nimbus.Overrides&quot;, properties);
dialogPanel.add(dialogButton);

// Omitted: Create dialog, add dialogPanel, pack and show dialog

Thanks!</description>
		<content:encoded><![CDATA[<p>Is it possible to color theme all the content of a dialog differently than that of the main application frame? I am trying to apply new values for the core nimbus colors (nimbusBase, control, text, etc) to a UIDefaults map that I supply to the contents of the dialog by settings the Nimbus.Overrides client property. It does not seem to work.</p>
<p>Here is the basics of the code I am using on JDK 1.6.0 Update 17:</p>
<p>// Set some wacky colors for the frame&#8217;s theme<br />
UIDefaults defaults = UIManager.getDefaults();<br />
defaults.put(&#8220;nimbusBase&#8221;, new Color(0, 255, 0));<br />
defaults.put(&#8220;nimbusBlueGrey&#8221;, new Color(200, 0, 0));<br />
defaults.put(&#8220;control&#8221;, Color.black);<br />
defaults.put(&#8220;text&#8221;, Color.black);</p>
<p>// Omitted: Create components and add them to the frame. Pack and show the frame.</p>
<p>UIDefaults dialogTheme = new UIDefaults();<br />
dialogTheme.put(&#8220;nimbusBase&#8221;, new Color(61, 0, 0));<br />
dialogTheme.put(&#8220;nimbusBlueGrey&#8221;, new Color(0, 0, 200));<br />
dialogTheme.put(&#8220;control&#8221;, Color.white);<br />
dialogTheme.put(&#8220;text&#8221;, Color.pink);</p>
<p>JButton dialogButton = new JButton(&#8220;Hello&#8221;);<br />
dialogButton.putClientProperty(&#8220;Nimbus.Overrides.InheritDefaults&#8221;, Boolean.TRUE);<br />
dialogButton.putClientProperty(&#8220;Nimbus.Overrides&#8221;, properties);</p>
<p>JPanel dialogPanel = new JPanel();<br />
dialogPanel.putClientProperty(&#8220;Nimbus.Overrides.InheritDefaults&#8221;, Boolean.TRUE);<br />
dialogPanel.putClientProperty(&#8220;Nimbus.Overrides&#8221;, properties);<br />
dialogPanel.add(dialogButton);</p>
<p>// Omitted: Create dialog, add dialogPanel, pack and show dialog</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jasper Potts</title>
		<link>http://www.jasperpotts.com/blog/2008/08/skinning-a-slider-with-nimbus/comment-page-1/#comment-1867</link>
		<dc:creator>Jasper Potts</dc:creator>
		<pubDate>Fri, 13 Nov 2009 10:27:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.jasperpotts.com/blog/2008/08/skinning-a-slider-with-nimbus/#comment-1867</guid>
		<description>Peter: For which version of Java? In Java 7 it should have moved to javax.swing.Painter and there should be a empty interface in the old location that extends the new one for backwards compatibility.</description>
		<content:encoded><![CDATA[<p>Peter: For which version of Java? In Java 7 it should have moved to javax.swing.Painter and there should be a empty interface in the old location that extends the new one for backwards compatibility.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter L</title>
		<link>http://www.jasperpotts.com/blog/2008/08/skinning-a-slider-with-nimbus/comment-page-1/#comment-1859</link>
		<dc:creator>Peter L</dc:creator>
		<pubDate>Fri, 06 Nov 2009 18:02:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.jasperpotts.com/blog/2008/08/skinning-a-slider-with-nimbus/#comment-1859</guid>
		<description>Is the Painter interface no longer in the com.sun.java.swing package?</description>
		<content:encoded><![CDATA[<p>Is the Painter interface no longer in the com.sun.java.swing package?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jasper Potts</title>
		<link>http://www.jasperpotts.com/blog/2008/08/skinning-a-slider-with-nimbus/comment-page-1/#comment-1854</link>
		<dc:creator>Jasper Potts</dc:creator>
		<pubDate>Mon, 02 Nov 2009 12:49:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.jasperpotts.com/blog/2008/08/skinning-a-slider-with-nimbus/#comment-1854</guid>
		<description>If components are not picking up keys then the chances are the cache is getting in the way. The two workarounds are to make sure you set the keys early enough ie before the look and feel is set. and the other is to use updateUI() to force a component to refresh its styling. Hope that helps :-)</description>
		<content:encoded><![CDATA[<p>If components are not picking up keys then the chances are the cache is getting in the way. The two workarounds are to make sure you set the keys early enough ie before the look and feel is set. and the other is to use updateUI() to force a component to refresh its styling. Hope that helps <img src='http://www.jasperpotts.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: LeOneL</title>
		<link>http://www.jasperpotts.com/blog/2008/08/skinning-a-slider-with-nimbus/comment-page-1/#comment-1835</link>
		<dc:creator>LeOneL</dc:creator>
		<pubDate>Sun, 25 Oct 2009 11:57:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.jasperpotts.com/blog/2008/08/skinning-a-slider-with-nimbus/#comment-1835</guid>
		<description>where&#039;s my reply? i recently left a reply when I last visit this page. It contains important question that I ask. Where it is?</description>
		<content:encoded><![CDATA[<p>where&#8217;s my reply? i recently left a reply when I last visit this page. It contains important question that I ask. Where it is?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
