TweetWallFX – Part 5

In TweetWallFX – Part 2 we talked about the wall creation. In TweetWallFX – Part 4 we had a demonstration of the chart API provided in JavaFX. Now we’re going to put everything together so that when we create a wall, the statistics tab will be created and updated in real time. This is pretty straight forward to do because we already have every needed piece to make it work.

Oh my! It works

Remember our TweetWallFXController class that was creating our wall. We had the startTweetWall() method that was creating a tab containing the wall. Remember also I was writing that we just have to make a task that every x seconds should look for new tweets. So basically we’re going to write this task, and it will create the wall and the stats.

That’s it, the wall and the stats will be updated every 5 seconds. To summarize, some screenshots:

Conclusion

In this eerie of articles I hope I could give a quick overview of JavaFX. But you can do much more with it, like playing sounds and movies, display data into really rich tables and so on. And if you have some designer skills (definitively not like me) you can do pretty beautiful UI. And with JavaFX 2.2 there’s more to come! Like I said in previous articles, I really think that JFX is an amazing and promising technology and that every Java developer should have a look at it. I also would like to share really few links about JFX: