O'Reilly logo

JavaFX™ Developer’s Guide by Kim Topley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

11. JavaFX Script Classes

In Java, classes are everywhere, but JavaFX is a much more informal language—you can write whole applications without having to create a single class of your own. Most of the examples in the first half of this book do not include a class declaration.1 However, if you are going to be creating reusable functionality, such as new controls to be used in your own or your company’s applications, you need to have a good understanding of JavaFX classes, which are the subject of this chapter.

As in Java, a JavaFX class may have state, represented by its instance variables, and operations that use/modify that state, in the form of instance functions. Although Java and JavaFX classes have much in common, there are various differences: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required