<?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: Setting maximum number of characters in JTextField</title>
	<atom:link href="http://www.andrels.com/wp-en_US/index.php/2009/09/setting-maximum-number-of-characters-in-jtextfield/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.andrels.com/wp-en_US/index.php/2009/09/setting-maximum-number-of-characters-in-jtextfield/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
	<description>Softwares Development, Technology and Games</description>
	<lastBuildDate>Wed, 28 Jul 2010 10:22:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: André</title>
		<link>http://www.andrels.com/wp-en_US/index.php/2009/09/setting-maximum-number-of-characters-in-jtextfield/comment-page-1/#comment-533</link>
		<dc:creator>André</dc:creator>
		<pubDate>Thu, 08 Jul 2010 13:24:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=73#comment-533</guid>
		<description>Sorry, my mistake.

The correct operator is &quot;!=&quot;, not &quot;==&quot;. You should to use &quot;str != null&quot; because if str is null &quot;str.length()&quot; will throw NullPointerException.

Thanks for notice!</description>
		<content:encoded><![CDATA[<p>Sorry, my mistake.</p>
<p>The correct operator is &#8220;!=&#8221;, not &#8220;==&#8221;. You should to use &#8220;str != null&#8221; because if str is null &#8220;str.length()&#8221; will throw NullPointerException.</p>
<p>Thanks for notice!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MoCsa</title>
		<link>http://www.andrels.com/wp-en_US/index.php/2009/09/setting-maximum-number-of-characters-in-jtextfield/comment-page-1/#comment-532</link>
		<dc:creator>MoCsa</dc:creator>
		<pubDate>Thu, 08 Jul 2010 10:53:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=73#comment-532</guid>
		<description>str==null why str=str.subString(0.....
I try it but wrong...

if (getLength() + str.length() &gt; limit) {
            str = str.substring(0, limit - getLength());

it&#039;s worked

and create setMaxChars(int MaxChars) metod ofcourse</description>
		<content:encoded><![CDATA[<p>str==null why str=str.subString(0&#8230;..<br />
I try it but wrong&#8230;</p>
<p>if (getLength() + str.length() &gt; limit) {<br />
            str = str.substring(0, limit &#8211; getLength());</p>
<p>it&#8217;s worked</p>
<p>and create setMaxChars(int MaxChars) metod ofcourse</p>
]]></content:encoded>
	</item>
</channel>
</rss>
