CHAPTER 4Creating JavaFX Classes and Objects

I paint objects as I think them, not as I see them.

Pablo Picasso

Now that you have gained some experience developing UIs in JavaFX, I'd like to switch gears and show you more completely how to define classes. In this chapter, you'll gain understanding and experience in writing operations and functions, as well as triggers, which are automatically invoked under certain conditions. You'll also become familiar with JavaFX statements, expressions, sequences (also known as arrays), and other concepts related to creating classes. I'm going to walk you through all of this in the context of the Word Search Builder application that we began examining in the previous chapter.

Testing the Word Search Builder ...

Get JavaFX™ Script: Dynamic Java™ Scripting for Rich Internet/Client-Side Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.