JavaFX – RSS and ATOM Task

JavaFX 1.2 provides new APIs to handle RSS and ATOM feeds. RssTask and AtomTask parses the feeds and provide the content as JavaFX objects. It can also be configured to provide updates on regular intervals.

RssTask parses the feed and provides the content as Channel and Item objects. These objects in-turn provides other information such as image, link, title, category, date etc.

Similarly AtomTask parses feed and provides Feed and Entry objects. These objects in-turn provides information such as author, category, link, logo, contributors etc.

News ticker using Yahoo RSS feed is given below.

For Applet mode, click on above image

For standalone mode

RssTask Usage:

var rssTask = RssTask {
    location: ""
    interval: 300s

    onException: function(e) {

    onChannel: function(channel) {

    onItem: function(item) {

AtomTask Usage:

var atomTask = AtomTask {
    location: ""
    interval: 300s

    onException: function(e) {

    onFeed: function(feed) {

    onEntry: function(entry) {

JavaFX Tweeter sample demonstrates use of both RssTask and HttpRequest.


var dzone_url = “”;
var dzone_style = ‘2’;

digg_skin = ‘compact’;
digg_window = ‘new’;

About Rakesh Menon

4 Responses to JavaFX – RSS and ATOM Task

  1. Arabica` says:

    thanks a lot. Very informative and unique post.

  2. Rakesh Menon says:

    @Arabica` Glad! Thanks!

  3. Mark Seery says:

    Thanks Rakesh, this was very helpful.

    Question. Will the items in the hbox (itemGroup) be removed from the hbox as they roll out of view? If not, what would be an approach to doing this?


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: