Book Review: Pro JavaFX 2 – A Definitive Guide to Rich Clients with Java Technology

The book gives an introduction to JavaFX 2, a web framework for realizing Rich Internet Applications (RIA). Overall, this is good book. If you want to get started with JavaFX 2, then you should buy this book. The book is easy to read and has good code examples (which you can download, too) for every feature.

The book gives an introduction to JavaFX 2, a web framework for realizing Rich Internet Applications (RIA). Overall, this is good book. If you want to get started with JavaFX 2, then you should buy this book. The book is easy to read and has good code examples (which you can download, too) for every feature.

 

Publication Date: February 29, 2012

ISBN-10: 1430268727

ISBN-13: 978-1430268727

Edition: 1

Authors: Jim Weaver, Weiqi Gao, Stephen Chin, Dean Iverson, and Johan Vos

Publisher: Apress

 

Content

The book begins with a “getting started” chapter, which explains the initial setup of software and tools, and explains the basic concepts. This is what you need when you start with a new technology.

Afterwards, several chapters go into more detail about creating a user interface, defining properties and bindings, and using UI controls. After reading these chapters, you are ready to realize your first JavaFX application.

The next chapter explains the thread concept of JavaFX. This is very important to understand for writing responsive applications. After reading this chapter, you can start programming production-ready JavaFX clients. Of course, you also need to connect to a backend, so the chapter “accessing web services” is a must-read for developer who do not write standalone applications. The book explains several ways how to connect to a backend via XML or JSON. Even several addons and frameworks are mentioned including code examples (e.g. RESTFX or Jersey).

Further chapters describe how to use advanced UI controls for creating charts or including media files.

The last chapter describes how to use alternative JVM languages and layout markup languages besides Java, namely Groovy, Scala, FXML, and Visage. This chapter is awesome. Even if you do not have any experience with these languages, you will learn and understand the differences compared to Java, and see why and when you can benefit from using another language instead of Java.

Criticism

Even though this book is a great introduction to JavaFX 2, here is some criticism. The major weak point is that you do not get much information about deployment. You can deploy JavaFX applications as standalone application, as Applet within a web browser, or run it via Java WebStart. But how do you do that? How do you configure the application (e.g. how do you configure your JNLP file for Java WebStart)? Every developer needs to know this to use the application outside of his IDE… You have to google to get answers.

Besides, two minor weak points:

Firstly, there is no word about unit testing. How should you write tests for your JavaFX application? Are there any best practices?

Secondly, when should you use JavaFX, when should you use another framework (e.g. JSF, GWT, Grails, etc.)? This book has a lot of marketing style, so you won’t get an answer here about problems of JavaFX.

Conclusion

As mentioned in the beginning, this is a very good introduction to JavaFX (omitting the deployment aspect) and easy to read. Every feature is explained in detail, including good code examples. So, if you want to get started with JavaFX 2, I can recommend this book to you.

 

Best regards,

Kai Wähner (Twitter: @KaiWaehner)

Dont‘ miss my next post. Subscribe!

We don’t spam! Read our privacy policy for more info.
If you have issues with the registration, please try a private browser tab / incognito mode. If it doesn't help, write me: kontakt@kai-waehner.de

1 comment
Leave a Reply
You May Also Like

When to use JavaFX 2 instead of HTML5 for a Rich Internet Application (RIA)?

These days, we are starting a new project for realizing a Rich Internet Application (RIA). One of the first questions is: Which technologies and frameworks shall we use? The backend will be Java or another modern JVM language, as we are mainly experienced Java developer. In most use cases, we also prefer web frameworks, which allow to code mostly in Java, as many of us just have basic knowledge regarding HTML and JavaScript. A decision has to be made for the upcoming project: Shall we use HTML5 or JavaFX 2 for realizing the web client? We took a look at pros and cons, which are listed below in this blog post.
Read More

Pros and Cons – When to use a Portal and Portlets instead of just Java Web-Frameworks

I had to answer the following question: Shall we use a Portal and if yes, should it be Liferay Portal or Oracle Portal? Or shall we use just one or more Java web frameworks? This article shows my result. The short answer: A Portal makes sense only in a few use cases, in the majority of cases you should not use one. In my case, we will not use one.
Read More