<?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: Background Tasks in JavaFX</title>
	<atom:link href="http://fxexperience.com/2009/06/background-tasks-in-javafx/feed/" rel="self" type="application/rss+xml" />
	<link>http://fxexperience.com/2009/06/background-tasks-in-javafx/</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: JavaFX and MVP &#8211; a smörgåsbord of design patterns &#124; Zen Java</title>
		<link>http://fxexperience.com/2009/06/background-tasks-in-javafx/comment-page-1/#comment-38905</link>
		<dc:creator>JavaFX and MVP &#8211; a smörgåsbord of design patterns &#124; Zen Java</dc:creator>
		<pubDate>Sun, 11 Dec 2011 04:36:58 +0000</pubDate>
		<guid isPermaLink="false">http://fxexperience.com/?p=116#comment-38905</guid>
		<description>[...] (as we currently do), however if you are making remote calls you need to use Threads (see this slightly outdated post about it). I use a Task here, and given our Presenters are simply calling onto a service, Tasks are [...]</description>
		<content:encoded><![CDATA[<p>[...] (as we currently do), however if you are making remote calls you need to use Threads (see this slightly outdated post about it). I use a Task here, and given our Presenters are simply calling onto a service, Tasks are [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Writing a Java-based Task // FX Experience</title>
		<link>http://fxexperience.com/2009/06/background-tasks-in-javafx/comment-page-1/#comment-1630</link>
		<dc:creator>Writing a Java-based Task // FX Experience</dc:creator>
		<pubDate>Tue, 24 Nov 2009 15:12:13 +0000</pubDate>
		<guid isPermaLink="false">http://fxexperience.com/?p=116#comment-1630</guid>
		<description>[...] a post from earlier this year I explored the concept of background tasks in JavaFX. If you haven&#8217;t yet, you might want to review that article before reading on. For the [...]</description>
		<content:encoded><![CDATA[<p>[...] a post from earlier this year I explored the concept of background tasks in JavaFX. If you haven&#8217;t yet, you might want to review that article before reading on. For the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Bakker</title>
		<link>http://fxexperience.com/2009/06/background-tasks-in-javafx/comment-page-1/#comment-1315</link>
		<dc:creator>Paul Bakker</dc:creator>
		<pubDate>Thu, 29 Oct 2009 22:48:41 +0000</pubDate>
		<guid isPermaLink="false">http://fxexperience.com/?p=116#comment-1315</guid>
		<description>The thing you&#039;re talking about last would be an excellent addition! The most practical annoying thing I run into now is that there is no way to parse xml in the background. This means the UI freezes for a second as soon as a HTTP request returns and parsing starts.</description>
		<content:encoded><![CDATA[<p>The thing you&#8217;re talking about last would be an excellent addition! The most practical annoying thing I run into now is that there is no way to parse xml in the background. This means the UI freezes for a second as soon as a HTTP request returns and parsing starts.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DN</title>
		<link>http://fxexperience.com/2009/06/background-tasks-in-javafx/comment-page-1/#comment-1099</link>
		<dc:creator>DN</dc:creator>
		<pubDate>Mon, 05 Oct 2009 21:17:09 +0000</pubDate>
		<guid isPermaLink="false">http://fxexperience.com/?p=116#comment-1099</guid>
		<description>I would like to know much about how JavaFX supports on current mobile devices only running JVM, As I read, It needs a FX runtime on top of JVM to run these applications. Thanks</description>
		<content:encoded><![CDATA[<p>I would like to know much about how JavaFX supports on current mobile devices only running JVM, As I read, It needs a FX runtime on top of JVM to run these applications. Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tharindu Madushanka</title>
		<link>http://fxexperience.com/2009/06/background-tasks-in-javafx/comment-page-1/#comment-616</link>
		<dc:creator>Tharindu Madushanka</dc:creator>
		<pubDate>Sun, 30 Aug 2009 06:06:02 +0000</pubDate>
		<guid isPermaLink="false">http://fxexperience.com/?p=116#comment-616</guid>
		<description>I would like to know much about how JavaFX supports on current mobile devices only running JVM, As I read, It needs a FX runtime on top of JVM to run these applications. Thanks</description>
		<content:encoded><![CDATA[<p>I would like to know much about how JavaFX supports on current mobile devices only running JVM, As I read, It needs a FX runtime on top of JVM to run these applications. Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://fxexperience.com/2009/06/background-tasks-in-javafx/comment-page-1/#comment-377</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Thu, 13 Aug 2009 00:12:17 +0000</pubDate>
		<guid isPermaLink="false">http://fxexperience.com/?p=116#comment-377</guid>
		<description>I received a report today that with JavaFX 1.2, Task is returning percentDone as a value between 0 and 100 rather than the correct answer which is between 0 and 1. I have filed an issue and will see that if this is the case then it will be fixed in the next release. This is considered a critical bug.</description>
		<content:encoded><![CDATA[<p>I received a report today that with JavaFX 1.2, Task is returning percentDone as a value between 0 and 100 rather than the correct answer which is between 0 and 1. I have filed an issue and will see that if this is the case then it will be fixed in the next release. This is considered a critical bug.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pigsaw Blog &#187; Blog Archive &#187; Bookmarks for 6 Aug 2009</title>
		<link>http://fxexperience.com/2009/06/background-tasks-in-javafx/comment-page-1/#comment-295</link>
		<dc:creator>Pigsaw Blog &#187; Blog Archive &#187; Bookmarks for 6 Aug 2009</dc:creator>
		<pubDate>Thu, 06 Aug 2009 13:01:53 +0000</pubDate>
		<guid isPermaLink="false">http://fxexperience.com/?p=116#comment-295</guid>
		<description>[...] Background Tasks in JavaFX // FX Experience&quot;The Task class in the javafx.async represents the basic programming model for all asynchronous tasks in JavaFX and should form the base class for all such background Tasks.&quot; (javafx programming concurrency ) [...]</description>
		<content:encoded><![CDATA[<p>[...] Background Tasks in JavaFX // FX Experience&quot;The Task class in the javafx.async represents the basic programming model for all asynchronous tasks in JavaFX and should form the base class for all such background Tasks.&quot; (javafx programming concurrency ) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://fxexperience.com/2009/06/background-tasks-in-javafx/comment-page-1/#comment-48</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Fri, 26 Jun 2009 15:41:11 +0000</pubDate>
		<guid isPermaLink="false">http://fxexperience.com/?p=116#comment-48</guid>
		<description>F3 was playing with these same ideas but didn&#039;t end up in the same place I&#039;d like to see it go. One thing that was nice about F3 was it had special language support for declaring the background thread instead of having to create an API class as I&#039;ve proposed above. I hope we also get to that point.

F3 had two constructs:

do { ... }
do later { ... }

If you read the F3 language resource (http://blogs.sun.com/chrisoliver/resource/f3.html) you&#039;ll see that Chris didn&#039;t think that &quot;do&quot; was quite right. And in fact, I&#039;m not sure its terribly useful. Even in Swing I&#039;ve hardly ever used do as opposed to do later.

I believe that &quot;do later&quot; in fact is also different from what I&#039;ve proposed above because the body of the &quot;do later&quot; actually runs on an EDT -- just at some later time. So this is the same as FX.deferAction in the current SDK. I&#039;m not an expert on F3 though, so I could be wrong.

Also, notice this comment in the above mentioned document: 

&quot;Such code must only access Java objects (and those objects must handle their own thread synchronization, if necessary)&quot;

So in F3 you still couldn&#039;t access or create F3 objects in a background thread. In the approach I&#039;m proposing, you can in fact create JavaFX objects off thread, but the compiler will make sure you don&#039;t interact incorrectly with objects declared elsewhere.

Also, in F3 there wasn&#039;t a full &quot;Task&quot; like API that backed the operation, so you couldn&#039;t bind up to progress or other such things</description>
		<content:encoded><![CDATA[<p>F3 was playing with these same ideas but didn&#8217;t end up in the same place I&#8217;d like to see it go. One thing that was nice about F3 was it had special language support for declaring the background thread instead of having to create an API class as I&#8217;ve proposed above. I hope we also get to that point.</p>
<p>F3 had two constructs:</p>
<p>do { &#8230; }<br />
do later { &#8230; }</p>
<p>If you read the F3 language resource (<a href="http://blogs.sun.com/chrisoliver/resource/f3.html" rel="nofollow">http://blogs.sun.com/chrisoliver/resource/f3.html</a>) you&#8217;ll see that Chris didn&#8217;t think that &#8220;do&#8221; was quite right. And in fact, I&#8217;m not sure its terribly useful. Even in Swing I&#8217;ve hardly ever used do as opposed to do later.</p>
<p>I believe that &#8220;do later&#8221; in fact is also different from what I&#8217;ve proposed above because the body of the &#8220;do later&#8221; actually runs on an EDT &#8212; just at some later time. So this is the same as FX.deferAction in the current SDK. I&#8217;m not an expert on F3 though, so I could be wrong.</p>
<p>Also, notice this comment in the above mentioned document: </p>
<p>&#8220;Such code must only access Java objects (and those objects must handle their own thread synchronization, if necessary)&#8221;</p>
<p>So in F3 you still couldn&#8217;t access or create F3 objects in a background thread. In the approach I&#8217;m proposing, you can in fact create JavaFX objects off thread, but the compiler will make sure you don&#8217;t interact incorrectly with objects declared elsewhere.</p>
<p>Also, in F3 there wasn&#8217;t a full &#8220;Task&#8221; like API that backed the operation, so you couldn&#8217;t bind up to progress or other such things</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pron</title>
		<link>http://fxexperience.com/2009/06/background-tasks-in-javafx/comment-page-1/#comment-47</link>
		<dc:creator>pron</dc:creator>
		<pubDate>Fri, 26 Jun 2009 10:20:58 +0000</pubDate>
		<guid isPermaLink="false">http://fxexperience.com/?p=116#comment-47</guid>
		<description>Didn&#039;t the original F3 have something similar to the threading model you describe at the end? What was wrong with that?</description>
		<content:encoded><![CDATA[<p>Didn&#8217;t the original F3 have something similar to the threading model you describe at the end? What was wrong with that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abhishek</title>
		<link>http://fxexperience.com/2009/06/background-tasks-in-javafx/comment-page-1/#comment-42</link>
		<dc:creator>Abhishek</dc:creator>
		<pubDate>Wed, 24 Jun 2009 21:04:07 +0000</pubDate>
		<guid isPermaLink="false">http://fxexperience.com/?p=116#comment-42</guid>
		<description>Its great to see that JavaFX now has a solution. In 1.0/1.1 days of JavaFX - I had to use SwingWorker and all the Swing Components to have components in UI in insync with whats happening in SwingWorker</description>
		<content:encoded><![CDATA[<p>Its great to see that JavaFX now has a solution. In 1.0/1.1 days of JavaFX &#8211; I had to use SwingWorker and all the Swing Components to have components in UI in insync with whats happening in SwingWorker</p>
]]></content:encoded>
	</item>
</channel>
</rss>

