Coming Up for Air

Book Review: JavaFX 8: Introduction by Example

Wednesday, June 25, 2014 |

Carl Dea, this time with the help of Mark Heckler, Gerrit Grunwald, José Pereda, and Sean Phillips, recently published an updated and greatly expanded introductory work on JavaFX, with both the title and content updated to reflect the updates in the JDK and library.

tl;dr: A solid introduction with a plethora of usable examples. You can purchase it here.

A9781430264606 3dTo start with, let’s take a quick glance at the table of contents:

  1. Getting started

  2. JavaFX Fundamentals

  3. Java 8 Lambda Expressions

  4. Layout & UI Controls

  5. Graphics with JavaFX

  6. Custom Controls

  7. Media with JavaFX

  8. JavaFX on the Web

  9. JavaFX 3D

  10. JavaFX and Arduino

  11. JavaFX on the Raspberry Pi

  12. Gesture-based Interfaces

  13. Appendix A. References

As you can see, there is wide array of topics, starting with some very fundamental topics (covering JavaFX and Java 8 fundamentals), then moving on to more complex topics. If you’re familiar with the updates in Java 8, then chapter 3 can probably be safely skipped, but chapter lays the foundation on which the rest of the book is read.

Rather than walking through each chapter, I’ll say this: each chapter is clear and well-written, providing copious amounts of sample code. One of the things I really liked about the examples is that, usually, each example source/application was shown in its entirety, then the authors walk through each significant section of code explaining the whats and whys, repeating the source for easy viewing. Furthermore, whether by luck or design, the code is formatted very neatly and displays perfectly on my Android tablet. I’ve read a lot of technoical books, and, more often than not, the code wraps oddly and is hard to read. With very few exceptions, the code was all neatly formatted so that it displayed cleanly on the ereader, which made it much easier to read.

The book ends with what I would consider a bit more advanced topic: JavaFX and the Internet of Things (IoT. As an aside, I really hate that term :). To be honest, I only lightly skimmed these chapters, as I’m not even thinking of working in this area at the moment. From the scan, though, the chapters look pretty solid, with plenty of advice in selecting and setting up your board, to getting your application to run on it. Should I ever venture into this realm, I’ll definitely have to revisit this section.

The last chapter (actually an appendix), is called "References", and it is exactly that: 16 pages of links, and it might be one of the best parts of the book. Being an introduction to JavaFX, there’s no way the authors can cover everything you need to know about the topic, so Appendix A comes to the rescue with link after link to help you go deeper. Topics include: Java 8 SDK and APIs, IDEs, Properties and Bindings, Layouts, Tools, Enterprise GUI Frameworks, and on and on. If my count is correct, there are links to 210 difference resources. I don’t remember the last time I saw such an exhaustive list in a book like this.

As I said at the beginning, this is a very solid introduction to JavaFX. The prose is well-written and easy to follow, and there are ample, ready to use examples for each topic. If you are interested in JavaFX in even the slightest way, this is a great place to start.

In case you missed the link earlier, you can purchase the book direct from the publishers here.

Search

    Quotes

    Sample quote

    Quote source

    About

    My name is Jason Lee. I am a software developer living in the middle of Oklahoma. I’ve been a professional developer since 1997, using a variety of languages, including Java, Javascript, PHP, Python, Delphi, and even a bit of C#. I currently work for Red Hat on the WildFly/EAP team, where, among other things, I maintain integrations for some MicroProfile specs, OpenTelemetry, Micrometer, Jakarta Faces, and Bean Validation. (Full resume here. LinkedIn profile)

    I am the president of the Oklahoma City JUG, and an occasional speaker at the JUG and a variety of technical conferences.

    On the personal side, I’m active in my church, and enjoy bass guitar, running, fishing, and a variety of martial arts. I’m also married to a beautiful woman, and have two boys, who, thankfully, look like their mother.

    My Links

    Publications