<?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: Text &#8220;Alignment&#8221; Trick</title>
	<atom:link href="http://fxexperience.com/2010/07/text-alignment-trick/feed/" rel="self" type="application/rss+xml" />
	<link>http://fxexperience.com/2010/07/text-alignment-trick/</link>
	<description>Sharing the Experience of JavaFX</description>
	<lastBuildDate>Wed, 08 Feb 2012 17:43:31 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: ashwin</title>
		<link>http://fxexperience.com/2010/07/text-alignment-trick/comment-page-1/#comment-16300</link>
		<dc:creator>ashwin</dc:creator>
		<pubDate>Wed, 23 Mar 2011 09:21:01 +0000</pubDate>
		<guid isPermaLink="false">http://fxexperience.com/?p=903#comment-16300</guid>
		<description>I am using text alignment to right and textwrap as true.

But in this case if the width of the text is less that widht of the label then the text is aligned to left. If the text width is more than width of label then the the alignment is right as expected.

Could any one help on this issue.</description>
		<content:encoded><![CDATA[<p>I am using text alignment to right and textwrap as true.</p>
<p>But in this case if the width of the text is less that widht of the label then the text is aligned to left. If the text width is more than width of label then the the alignment is right as expected.</p>
<p>Could any one help on this issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Taki</title>
		<link>http://fxexperience.com/2010/07/text-alignment-trick/comment-page-1/#comment-10021</link>
		<dc:creator>Taki</dc:creator>
		<pubDate>Fri, 24 Sep 2010 08:13:54 +0000</pubDate>
		<guid isPermaLink="false">http://fxexperience.com/?p=903#comment-10021</guid>
		<description>use instead of &quot;width: bind 120&quot; this:

layoutInfo: LayoutInfo {
    width: width
}</description>
		<content:encoded><![CDATA[<p>use instead of &#8220;width: bind 120&#8243; this:</p>
<p>layoutInfo: LayoutInfo {<br />
    width: width<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JavaFX links of the week, July 12 // JavaFX News, Demos and Insight // FX Experience</title>
		<link>http://fxexperience.com/2010/07/text-alignment-trick/comment-page-1/#comment-8115</link>
		<dc:creator>JavaFX links of the week, July 12 // JavaFX News, Demos and Insight // FX Experience</dc:creator>
		<pubDate>Sun, 11 Jul 2010 22:02:24 +0000</pubDate>
		<guid isPermaLink="false">http://fxexperience.com/?p=903#comment-8115</guid>
		<description>[...] Bair posted a text alignment trick that is useful when trying to lay out Label [...]</description>
		<content:encoded><![CDATA[<p>[...] Bair posted a text alignment trick that is useful when trying to lay out Label [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PhiLho</title>
		<link>http://fxexperience.com/2010/07/text-alignment-trick/comment-page-1/#comment-7978</link>
		<dc:creator>PhiLho</dc:creator>
		<pubDate>Wed, 07 Jul 2010 16:29:27 +0000</pubDate>
		<guid isPermaLink="false">http://fxexperience.com/?p=903#comment-7978</guid>
		<description>Ah, so you use bind to make the variable read-only? Now, that&#039;s really tricky, indeed...
Perhaps a bit too much, as it is not obvious and thus not very readable (unless we are used to the trick?), but worth knowing.
Thanks for the explanation.</description>
		<content:encoded><![CDATA[<p>Ah, so you use bind to make the variable read-only? Now, that&#8217;s really tricky, indeed&#8230;<br />
Perhaps a bit too much, as it is not obvious and thus not very readable (unless we are used to the trick?), but worth knowing.<br />
Thanks for the explanation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Bair</title>
		<link>http://fxexperience.com/2010/07/text-alignment-trick/comment-page-1/#comment-7957</link>
		<dc:creator>Richard Bair</dc:creator>
		<pubDate>Wed, 07 Jul 2010 13:14:06 +0000</pubDate>
		<guid isPermaLink="false">http://fxexperience.com/?p=903#comment-7957</guid>
		<description>Binding the width is not useless at all, but is an alternate method for, essentially, overriding the width such that the layout container cannot set it. In fact, that is precisely why I use bind to the constant. Another way to accomplish essentially the same thing is to set the layoutInfo to have the specified width as you mention. I bet if you asked Amy which to do in this case, she&#039;d not complain about the method I used :-)</description>
		<content:encoded><![CDATA[<p>Binding the width is not useless at all, but is an alternate method for, essentially, overriding the width such that the layout container cannot set it. In fact, that is precisely why I use bind to the constant. Another way to accomplish essentially the same thing is to set the layoutInfo to have the specified width as you mention. I bet if you asked Amy which to do in this case, she&#8217;d not complain about the method I used <img src='http://fxexperience.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PhiLho</title>
		<link>http://fxexperience.com/2010/07/text-alignment-trick/comment-page-1/#comment-7954</link>
		<dc:creator>PhiLho</dc:creator>
		<pubDate>Wed, 07 Jul 2010 13:07:25 +0000</pubDate>
		<guid isPermaLink="false">http://fxexperience.com/?p=903#comment-7954</guid>
		<description>Irk!
First shocking sight: binding to a constant! Armless but useless.
Second wondering sight: setting the width for a resizable control...
The JavaFX 1.3 doc now states that quite clearly: &quot;The Resizable&#039;s layout width, which is set by the it&#039;s parent during layout and should not be set directly by the application.&quot;
Layout guru, Amy Fowler, recommends to set LayoutInfo&#039;s width instead.</description>
		<content:encoded><![CDATA[<p>Irk!<br />
First shocking sight: binding to a constant! Armless but useless.<br />
Second wondering sight: setting the width for a resizable control&#8230;<br />
The JavaFX 1.3 doc now states that quite clearly: &#8220;The Resizable&#8217;s layout width, which is set by the it&#8217;s parent during layout and should not be set directly by the application.&#8221;<br />
Layout guru, Amy Fowler, recommends to set LayoutInfo&#8217;s width instead.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

