O'Reilly logo

JavaFX in Action by Simon Morris

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

Chapter 2. JavaFX Script data and variables

This chapter covers

  • Introducing JavaFX Script variables
  • Doing interesting things to strings
  • Getting linear, with ranges and sequences
  • Automating variable updates using binds

If chapter 1 has had the desired effect, you should be eager to get your hands dirty with code. But before we can start dazzling unsuspecting bystanders with our stunning JavaFX visuals, we’ll need to become acquainted with Java FX Script, JavaFX’s own programming language. In this chapter, and the one that follows, we’ll start to do just that.

In this chapter we will look at how variables are created and manipulated. JavaFX Script has a lot of interesting features in this area, beyond those offered by languages like Java ...

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