<?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: Nimbus UIManager UIDefaults</title>
	<atom:link href="http://www.jasperpotts.com/blog/2008/08/nimbus-uimanager-uidefaults/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jasperpotts.com/blog/2008/08/nimbus-uimanager-uidefaults/</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: Erik L</title>
		<link>http://www.jasperpotts.com/blog/2008/08/nimbus-uimanager-uidefaults/comment-page-2/#comment-1932</link>
		<dc:creator>Erik L</dc:creator>
		<pubDate>Sat, 06 Mar 2010 23:31:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.jasperpotts.com/blog/2008/08/nimbus-uimanager-uidefaults/#comment-1932</guid>
		<description>Has anyone figured out how to change the Fonts? I am developing on Mac java 1.6_0_17. I have tried setting the fonts for JLabel and it does nothing. I tried setting defaultfont before setting the look and feel to Nimbus and this only changed the font for one tab title.</description>
		<content:encoded><![CDATA[<p>Has anyone figured out how to change the Fonts? I am developing on Mac java 1.6_0_17. I have tried setting the fonts for JLabel and it does nothing. I tried setting defaultfont before setting the look and feel to Nimbus and this only changed the font for one tab title.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.jasperpotts.com/blog/2008/08/nimbus-uimanager-uidefaults/comment-page-2/#comment-1927</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Mon, 15 Feb 2010 16:47:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.jasperpotts.com/blog/2008/08/nimbus-uimanager-uidefaults/#comment-1927</guid>
		<description>Hello,

I&#039;m having a problem similar to Kevin&#039;s from above. I have noticed some strange behavior with MenuBar colors. I would like to have a different color for selected text.

        theDefaults.put(&quot;MenuBar:Menu[Enabled].textForeground&quot;, Color.WHITE);
        theDefaults.put(&quot;MenuBar:Menu[Selected].textForeground&quot;, Color.BLACK); // Doesn&#039;t work!

It seems that if I specify the Enabled color, Nimbus will always use it. It will only use the Selected color if I don&#039;t specify an Enabled color. I have tried using &quot;Enabled+Selected&quot;, but that doesn&#039;t work either.

Any ideas on how to work around this?

Thanks.</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I&#8217;m having a problem similar to Kevin&#8217;s from above. I have noticed some strange behavior with MenuBar colors. I would like to have a different color for selected text.</p>
<p>        theDefaults.put(&#8220;MenuBar:Menu[Enabled].textForeground&#8221;, Color.WHITE);<br />
        theDefaults.put(&#8220;MenuBar:Menu[Selected].textForeground&#8221;, Color.BLACK); // Doesn&#8217;t work!</p>
<p>It seems that if I specify the Enabled color, Nimbus will always use it. It will only use the Selected color if I don&#8217;t specify an Enabled color. I have tried using &#8220;Enabled+Selected&#8221;, but that doesn&#8217;t work either.</p>
<p>Any ideas on how to work around this?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jasper Potts</title>
		<link>http://www.jasperpotts.com/blog/2008/08/nimbus-uimanager-uidefaults/comment-page-2/#comment-1926</link>
		<dc:creator>Jasper Potts</dc:creator>
		<pubDate>Thu, 11 Feb 2010 15:44:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.jasperpotts.com/blog/2008/08/nimbus-uimanager-uidefaults/#comment-1926</guid>
		<description>You should be able to change it simply. Just need to turn off paint for background of the text field being used as a editor and maybe reducing its padding. Basically need to set 2 properties in the client properties as shown in the blogs here. Should work. Sorry don&#039;t have time at the moment to work out exact lines of code you need.</description>
		<content:encoded><![CDATA[<p>You should be able to change it simply. Just need to turn off paint for background of the text field being used as a editor and maybe reducing its padding. Basically need to set 2 properties in the client properties as shown in the blogs here. Should work. Sorry don&#8217;t have time at the moment to work out exact lines of code you need.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony Lindsay</title>
		<link>http://www.jasperpotts.com/blog/2008/08/nimbus-uimanager-uidefaults/comment-page-2/#comment-1925</link>
		<dc:creator>Tony Lindsay</dc:creator>
		<pubDate>Thu, 11 Feb 2010 15:40:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.jasperpotts.com/blog/2008/08/nimbus-uimanager-uidefaults/#comment-1925</guid>
		<description>I think Nimbus is an excellent look and feel.  Overall I have been very happy with it...
However I am having one issue where I&#039;m having trouble finding a solution.

When the focus is given to an input component (such as JTextField, JSpinner etc) a 2 pixel border is painted around the component.  In most cases this is desirable as it provides a nice visual cue to the user.  However, when displaying an inline editor on a JTable, this focus highlight causes the input component to be smaller.  The effect is a &#039;squished&#039; input field.  To compensate, I have increased the row height of the table but this causes the table to occupy much more space.

Is there a way to selectively remove the focus highlight for an input component?  If not, maybe this could be added in a future release?</description>
		<content:encoded><![CDATA[<p>I think Nimbus is an excellent look and feel.  Overall I have been very happy with it&#8230;<br />
However I am having one issue where I&#8217;m having trouble finding a solution.</p>
<p>When the focus is given to an input component (such as JTextField, JSpinner etc) a 2 pixel border is painted around the component.  In most cases this is desirable as it provides a nice visual cue to the user.  However, when displaying an inline editor on a JTable, this focus highlight causes the input component to be smaller.  The effect is a &#8217;squished&#8217; input field.  To compensate, I have increased the row height of the table but this causes the table to occupy much more space.</p>
<p>Is there a way to selectively remove the focus highlight for an input component?  If not, maybe this could be added in a future release?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: osc</title>
		<link>http://www.jasperpotts.com/blog/2008/08/nimbus-uimanager-uidefaults/comment-page-2/#comment-1921</link>
		<dc:creator>osc</dc:creator>
		<pubDate>Tue, 02 Feb 2010 23:04:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.jasperpotts.com/blog/2008/08/nimbus-uimanager-uidefaults/#comment-1921</guid>
		<description>Have you noticed that TitledBorder draws the background color of the title over the shaded outline when TitledBorder.TOP is used? Any chance you might make the background transparent so that the outline could come through?</description>
		<content:encoded><![CDATA[<p>Have you noticed that TitledBorder draws the background color of the title over the shaded outline when TitledBorder.TOP is used? Any chance you might make the background transparent so that the outline could come through?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Barnham</title>
		<link>http://www.jasperpotts.com/blog/2008/08/nimbus-uimanager-uidefaults/comment-page-2/#comment-1913</link>
		<dc:creator>Andrew Barnham</dc:creator>
		<pubDate>Tue, 19 Jan 2010 19:59:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.jasperpotts.com/blog/2008/08/nimbus-uimanager-uidefaults/#comment-1913</guid>
		<description>I had a brief look at Nimbus code from openjdk. My initial reading of it is that there is no ready way to set contentMargins based on component name and that contentMargin is a special case property. contentMargin is fixed per NimbusStyle instantiation. Maybe there is some trick I can figure out a way to instantiate a single NimbusStyle that services every instantiation of my custom &quot;clarion&quot; jbutton class (Nimbus.Overrides seems to instantiate a new NimbusStyle for every component which is probably at the heart of the colortree memory leak).  I am also a bit pressed for time right now - but if things free up in a week or 3, then I&#039;ll take a closer look and try to discover a good efficient workaround or patch. In meantime my workaround is - don&#039;t use JRE u14 or above!</description>
		<content:encoded><![CDATA[<p>I had a brief look at Nimbus code from openjdk. My initial reading of it is that there is no ready way to set contentMargins based on component name and that contentMargin is a special case property. contentMargin is fixed per NimbusStyle instantiation. Maybe there is some trick I can figure out a way to instantiate a single NimbusStyle that services every instantiation of my custom &#8220;clarion&#8221; jbutton class (Nimbus.Overrides seems to instantiate a new NimbusStyle for every component which is probably at the heart of the colortree memory leak).  I am also a bit pressed for time right now &#8211; but if things free up in a week or 3, then I&#8217;ll take a closer look and try to discover a good efficient workaround or patch. In meantime my workaround is &#8211; don&#8217;t use JRE u14 or above!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Barnham</title>
		<link>http://www.jasperpotts.com/blog/2008/08/nimbus-uimanager-uidefaults/comment-page-2/#comment-1912</link>
		<dc:creator>Andrew Barnham</dc:creator>
		<pubDate>Tue, 19 Jan 2010 18:41:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.jasperpotts.com/blog/2008/08/nimbus-uimanager-uidefaults/#comment-1912</guid>
		<description>Thanks - greatly appreciated. This is what I have back from Sun so far.
----
Your report has been assigned an internal review ID of 1699855, which is NOT visible on the Sun Developer Network (SDN)
----

Let me know if you need more.</description>
		<content:encoded><![CDATA[<p>Thanks &#8211; greatly appreciated. This is what I have back from Sun so far.<br />
&#8212;-<br />
Your report has been assigned an internal review ID of 1699855, which is NOT visible on the Sun Developer Network (SDN)<br />
&#8212;-</p>
<p>Let me know if you need more.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jasper Potts</title>
		<link>http://www.jasperpotts.com/blog/2008/08/nimbus-uimanager-uidefaults/comment-page-2/#comment-1911</link>
		<dc:creator>Jasper Potts</dc:creator>
		<pubDate>Tue, 19 Jan 2010 12:11:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.jasperpotts.com/blog/2008/08/nimbus-uimanager-uidefaults/#comment-1911</guid>
		<description>Looks like a nasty bug with the memory leek in ColorTree. That was not something I wrote, if you send me a bug id for the issue you filled I will try to get it looked at. I can&#039;t remember the exact named component syntax at the moment and don&#039;t have time to look it up. All the source for Nimbus was released into Open JDK 7 so you can grab the source there and follow though and see exactly what is supported. Sorry for making you do the leg work on this one I am just working on another deadline. Jasper</description>
		<content:encoded><![CDATA[<p>Looks like a nasty bug with the memory leek in ColorTree. That was not something I wrote, if you send me a bug id for the issue you filled I will try to get it looked at. I can&#8217;t remember the exact named component syntax at the moment and don&#8217;t have time to look it up. All the source for Nimbus was released into Open JDK 7 so you can grab the source there and follow though and see exactly what is supported. Sorry for making you do the leg work on this one I am just working on another deadline. Jasper</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Barnham</title>
		<link>http://www.jasperpotts.com/blog/2008/08/nimbus-uimanager-uidefaults/comment-page-2/#comment-1910</link>
		<dc:creator>Andrew Barnham</dc:creator>
		<pubDate>Tue, 19 Jan 2010 12:04:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.jasperpotts.com/blog/2008/08/nimbus-uimanager-uidefaults/#comment-1910</guid>
		<description>Hi

I am trying to customize contentMargins for certain buttons (not all them - otherwise buttons in forms like file dialog are affected too).

The notion of using setName() doesn&#039;t appear to work. i.e. :
                defaults.put(&quot;Button:clarion.contentMargins&quot;,new Insets(6,0,6,0));
                defaults.put(&quot;Button:\&quot;clarion\&quot;.contentMargins&quot;,new Insets(6,0,6,0));

I found a workaround - which was to use Nimbus.Overrides client property. It worked fine until I tested it on a later version of JRE - each time i instantiate the swing component - Nimbus leaks vast amounts of memory. On a low spec machine - after user bounces in and out of about 100 windows or so (20 minutes of typical usage) - application becomes unusable.  I have not pinpointed root cause - but leaky objects are all around recently added ColorTree etc. so probably started happening at u14. u10 is fine. u17 &amp; u18 are definitely broken. Have lots of jmap histogram outputs, test code, line plots etc demonstrating this (posted on SDN - awaiting reply). 

Working on a slightly unusual project whereby normal layout managers cannot be applied - and additionally I need to be able to override behaviours like contentMargin settings.

Cheers
Andrew</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>I am trying to customize contentMargins for certain buttons (not all them &#8211; otherwise buttons in forms like file dialog are affected too).</p>
<p>The notion of using setName() doesn&#8217;t appear to work. i.e. :<br />
                defaults.put(&#8220;Button:clarion.contentMargins&#8221;,new Insets(6,0,6,0));<br />
                defaults.put(&#8220;Button:\&#8221;clarion\&#8221;.contentMargins&#8221;,new Insets(6,0,6,0));</p>
<p>I found a workaround &#8211; which was to use Nimbus.Overrides client property. It worked fine until I tested it on a later version of JRE &#8211; each time i instantiate the swing component &#8211; Nimbus leaks vast amounts of memory. On a low spec machine &#8211; after user bounces in and out of about 100 windows or so (20 minutes of typical usage) &#8211; application becomes unusable.  I have not pinpointed root cause &#8211; but leaky objects are all around recently added ColorTree etc. so probably started happening at u14. u10 is fine. u17 &amp; u18 are definitely broken. Have lots of jmap histogram outputs, test code, line plots etc demonstrating this (posted on SDN &#8211; awaiting reply). </p>
<p>Working on a slightly unusual project whereby normal layout managers cannot be applied &#8211; and additionally I need to be able to override behaviours like contentMargin settings.</p>
<p>Cheers<br />
Andrew</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: m</title>
		<link>http://www.jasperpotts.com/blog/2008/08/nimbus-uimanager-uidefaults/comment-page-2/#comment-1886</link>
		<dc:creator>m</dc:creator>
		<pubDate>Fri, 04 Dec 2009 18:51:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.jasperpotts.com/blog/2008/08/nimbus-uimanager-uidefaults/#comment-1886</guid>
		<description>Okay, my background painters are working now.... but my foreground text is misbehaving. I set the following:

laf.getDefaults().put(&quot;Button[Default+Pressed].textForeground&quot;, Color.BLACK);
laf.getDefaults().put(&quot;Button.textForeground&quot;, Color.WHITE);
laf.getDefaults().put(&quot;Button.disabledText&quot;, Color.DARK_GRAY);

yet the result is:

Disabled JButton - foreground text is Color.WHITE
Enable unpressed JButton - foreground text is Color.WHITE
Enabled pressed JButton - foreground text is Color.WHITE

Am I overlooking something again? 

Thanx, m</description>
		<content:encoded><![CDATA[<p>Okay, my background painters are working now&#8230;. but my foreground text is misbehaving. I set the following:</p>
<p>laf.getDefaults().put(&#8220;Button[Default+Pressed].textForeground&#8221;, Color.BLACK);<br />
laf.getDefaults().put(&#8220;Button.textForeground&#8221;, Color.WHITE);<br />
laf.getDefaults().put(&#8220;Button.disabledText&#8221;, Color.DARK_GRAY);</p>
<p>yet the result is:</p>
<p>Disabled JButton &#8211; foreground text is Color.WHITE<br />
Enable unpressed JButton &#8211; foreground text is Color.WHITE<br />
Enabled pressed JButton &#8211; foreground text is Color.WHITE</p>
<p>Am I overlooking something again? </p>
<p>Thanx, m</p>
]]></content:encoded>
	</item>
</channel>
</rss>
