<?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: How to Update/Refresh JTextArea Dynamically ?</title>
	<atom:link href="http://technobuz.com/2009/05/update-jtextarea-dynamically/feed/" rel="self" type="application/rss+xml" />
	<link>http://technobuz.com/2009/05/update-jtextarea-dynamically/</link>
	<description>For blog tips,Templates ,hacks ,programming fun and tweaks.</description>
	<lastBuildDate>Fri, 30 Jul 2010 14:29:07 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: name</title>
		<link>http://technobuz.com/2009/05/update-jtextarea-dynamically/comment-page-1/#comment-2080</link>
		<dc:creator>name</dc:creator>
		<pubDate>Tue, 04 May 2010 18:23:11 +0000</pubDate>
		<guid isPermaLink="false">http://technobuz.com/?p=1118#comment-2080</guid>
		<description>Best,</description>
		<content:encoded><![CDATA[<p>Best,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://technobuz.com/2009/05/update-jtextarea-dynamically/comment-page-1/#comment-495</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Tue, 18 Aug 2009 03:54:33 +0000</pubDate>
		<guid isPermaLink="false">http://technobuz.com/?p=1118#comment-495</guid>
		<description>For Sure they will not respond:) Ok ..Try this thread 

http://forums.sun.com/thread.jspa?threadID=5364511&amp;tstart=0 

it was useful to me while i was working on my project ..Currently its not loading ,you give it a try..</description>
		<content:encoded><![CDATA[<p>For Sure they will not respond:) Ok ..Try this thread </p>
<p><a href="http://forums.sun.com/thread.jspa?threadID=5364511&#038;tstart=0" rel="nofollow">http://forums.sun.com/thread.jspa?threadID=5364511&#038;tstart=0</a> </p>
<p>it was useful to me while i was working on my project ..Currently its not loading ,you give it a try..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kordian</title>
		<link>http://technobuz.com/2009/05/update-jtextarea-dynamically/comment-page-1/#comment-493</link>
		<dc:creator>kordian</dc:creator>
		<pubDate>Mon, 17 Aug 2009 13:55:55 +0000</pubDate>
		<guid isPermaLink="false">http://technobuz.com/?p=1118#comment-493</guid>
		<description>So what we do now? Maybe we should sent mail to sun? :)

OK, I try to digg a little thru sun forum</description>
		<content:encoded><![CDATA[<p>So what we do now? Maybe we should sent mail to sun? <img src='http://technobuz.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>OK, I try to digg a little thru sun forum</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://technobuz.com/2009/05/update-jtextarea-dynamically/comment-page-1/#comment-492</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Mon, 17 Aug 2009 04:05:18 +0000</pubDate>
		<guid isPermaLink="false">http://technobuz.com/?p=1118#comment-492</guid>
		<description>I dont know wats causing this pro:(</description>
		<content:encoded><![CDATA[<p>I dont know wats causing this pro:(</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kordian</title>
		<link>http://technobuz.com/2009/05/update-jtextarea-dynamically/comment-page-1/#comment-490</link>
		<dc:creator>kordian</dc:creator>
		<pubDate>Sun, 16 Aug 2009 20:42:11 +0000</pubDate>
		<guid isPermaLink="false">http://technobuz.com/?p=1118#comment-490</guid>
		<description>hey, check this out. When i put this loop 

for (long x=0; x&lt; 1000000000; x++) {

}

after worker.execute() from your example text is also deleyed...</description>
		<content:encoded><![CDATA[<p>hey, check this out. When i put this loop </p>
<p>for (long x=0; x&lt; 1000000000; x++) {</p>
<p>}</p>
<p>after worker.execute() from your example text is also deleyed&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kordian</title>
		<link>http://technobuz.com/2009/05/update-jtextarea-dynamically/comment-page-1/#comment-489</link>
		<dc:creator>kordian</dc:creator>
		<pubDate>Sun, 16 Aug 2009 20:17:43 +0000</pubDate>
		<guid isPermaLink="false">http://technobuz.com/?p=1118#comment-489</guid>
		<description>Still the same. Have no clue what can cause this problem... Strange thing is that SwingWorker doesn&#039;t do its job...</description>
		<content:encoded><![CDATA[<p>Still the same. Have no clue what can cause this problem&#8230; Strange thing is that SwingWorker doesn&#8217;t do its job&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://technobuz.com/2009/05/update-jtextarea-dynamically/comment-page-1/#comment-487</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sun, 16 Aug 2009 12:13:14 +0000</pubDate>
		<guid isPermaLink="false">http://technobuz.com/?p=1118#comment-487</guid>
		<description>I cannot figure out why its still not working...

ok try this define swing worker outside separately not inside showtext method

SwingWorker worker = new SwingWorker&lt;String,Void&gt;() {

public String doInBackground() {

jTextArea1.append(textMessage);

return null;
}
@Override
public void done() {}
};

private void showText() {

worker.execute();
}</description>
		<content:encoded><![CDATA[<p>I cannot figure out why its still not working&#8230;</p>
<p>ok try this define swing worker outside separately not inside showtext method</p>
<p>SwingWorker worker = new SwingWorker<string ,Void>() {</p>
<p>public String doInBackground() {</p>
<p>jTextArea1.append(textMessage);</p>
<p>return null;<br />
}<br />
@Override<br />
public void done() {}<br />
};</p>
<p>private void showText() {</p>
<p>worker.execute();<br />
}</string></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kordian</title>
		<link>http://technobuz.com/2009/05/update-jtextarea-dynamically/comment-page-1/#comment-486</link>
		<dc:creator>kordian</dc:creator>
		<pubDate>Sun, 16 Aug 2009 11:36:09 +0000</pubDate>
		<guid isPermaLink="false">http://technobuz.com/?p=1118#comment-486</guid>
		<description>Thanks for a tip!
OK, so I did this:

1. defined global variable:
   String textMessage = &quot;&quot;;

2. defined method showText()
private void showText() {
        SwingWorker worker = new SwingWorker() {
            @Override
            public String doInBackground() {

                    jTextArea1.append(textMessage);

                return null;
            }
            @Override
            public void done() {}
        };
        worker.execute();
    }

3. and everytime I want to append text to jTextArea before calling time consuming method, I do this:
textMessage = &quot;some text I want to display&quot;;
showText();

and, imagin, it doesn&#039;t change anything. Still, text appears after calling time consuming method. WTF???</description>
		<content:encoded><![CDATA[<p>Thanks for a tip!<br />
OK, so I did this:</p>
<p>1. defined global variable:<br />
   String textMessage = &#8220;&#8221;;</p>
<p>2. defined method showText()<br />
private void showText() {<br />
        SwingWorker worker = new SwingWorker() {<br />
            @Override<br />
            public String doInBackground() {</p>
<p>                    jTextArea1.append(textMessage);</p>
<p>                return null;<br />
            }<br />
            @Override<br />
            public void done() {}<br />
        };<br />
        worker.execute();<br />
    }</p>
<p>3. and everytime I want to append text to jTextArea before calling time consuming method, I do this:<br />
textMessage = &#8220;some text I want to display&#8221;;<br />
showText();</p>
<p>and, imagin, it doesn&#8217;t change anything. Still, text appears after calling time consuming method. WTF???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://technobuz.com/2009/05/update-jtextarea-dynamically/comment-page-1/#comment-483</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sat, 15 Aug 2009 15:57:16 +0000</pubDate>
		<guid isPermaLink="false">http://technobuz.com/?p=1118#comment-483</guid>
		<description>Try this make variable &#039;m&#039; a global variable so that you can access it from any where.It should fix the problem...


SwingWorker worker = new SwingWorker() {
public String doInBackground() {
try {
jTextArea.append(m);
} catch (Exception e) {
e.printStackTrace();
}
return null;
}

public void printMessage(String s) {
 m = s;
jTextArea1.setText(m);
}

public void done() {}
};
worker.execute();</description>
		<content:encoded><![CDATA[<p>Try this make variable &#8216;m&#8217; a global variable so that you can access it from any where.It should fix the problem&#8230;</p>
<p>SwingWorker worker = new SwingWorker() {<br />
public String doInBackground() {<br />
try {<br />
jTextArea.append(m);<br />
} catch (Exception e) {<br />
e.printStackTrace();<br />
}<br />
return null;<br />
}</p>
<p>public void printMessage(String s) {<br />
 m = s;<br />
jTextArea1.setText(m);<br />
}</p>
<p>public void done() {}<br />
};<br />
worker.execute();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kordian</title>
		<link>http://technobuz.com/2009/05/update-jtextarea-dynamically/comment-page-1/#comment-481</link>
		<dc:creator>kordian</dc:creator>
		<pubDate>Sat, 15 Aug 2009 12:25:14 +0000</pubDate>
		<guid isPermaLink="false">http://technobuz.com/?p=1118#comment-481</guid>
		<description>Wait...Should I create seperate StringWorker thread each time I want to write sth to jTextArea during time consuming operation?

If so, how can I pass argument to StrinWorker?</description>
		<content:encoded><![CDATA[<p>Wait&#8230;Should I create seperate StringWorker thread each time I want to write sth to jTextArea during time consuming operation?</p>
<p>If so, how can I pass argument to StrinWorker?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
