JavaFX Script Book

Two weeks ago I started to experiment with JavaFX Script, I really liked this language, actually I got obsessed – in good way – so I started to look for resources. The only available book in English is JavaFX Script by James Weaver, so  I ordered the book and early this week I finally received the book. There is also another book in German JavaFX by Ralph Steyer. However, this post is for the JavaFX Script book since I do not speak any German.

The book has a tutorial style and a HowTo attitude. Everything is explained in a nice and understandable way, it is short so you can read it very fast, it took me only two days to read it. All the concepts are explained by examples and at the end of each chapter there is an exercise, the author has also created a non trivial application to demonstrate the power of JavaFX. But more important since JavaFX is changing in many areas until the SDK is out, the author modifies the examples and publish them in his blog, by the way you will find a lot of information about JavaFX in that blog.

What you will find in the chapters:

Chapter 1: Introduces the reader to JavaFX Family, very sort chapter no technical details.

Chapter 2: You will find here what are the available tools to write and run JavaFX Script applications and of curse you will find here the famous hello word application.  The chapter continues with the basics of the language,  writing declarative code, using basic classes like Frame and Canvas, creating your own classes, declaring variables and attribute, the bind operator and more.

Chapter 3: As I said before the author has created an application to explain and demonstrate most of the features of the language, so the chapter starts with the introduction of this application. In this chapter you will learn about typical components that you see in every swing application like Buttons, Borders, Menus, Layouts etc.

Chapter 4: This chapter enhances on concepts that you have been exposed in previews chapters. You will learn more about classes, triggers, operations, functions, data types, access modifiers etc. Keep in mind that some of this concepts have changed since the book was written as JavaFX is not out yet.

Chapter 5: 2D graphics is the area that JavaFX Script rocks, so this chapter makes a very good introduction on how to create 2D applications and UIs using JavaFX Script. Again, keep in mind that a lot of things have changed in this area and there are a lot of things added to it too. However, this chapter will help you a lot.

For the examples of this book I suggest you use eclipse and the JavaFX pugin since the eclipse plugin uses an older version of JavaFX Script and the examples run without modification.

However if you are experienced programmer I suggest the NetBeans 6.1 with JavaFX plugin, it is much better than the eclipse one and it also uses the Technology Preview Release of the JavaFX SDK, but you will need to modify the examples or get some of them from the authors blog.

Get a copy of the book and start writing some code ;)

Enjoy!

Advertisements