O'Reilly logo

Scripting in Java: Integrating with Groovy and JavaScript by Kishori Sharan

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 11

image

Using JavaFX in Nashorn

In this chapter, you will learn:

  • The JavaFX support in the jjs command-line tool
  • Providing an implementation for the init(), start(), and stop() methods of the JavaFX Application class in scripts
  • How to load and use JavaFX packages and classes using the predefined scripts
  • Creating and launching a simple JavaFX application using a Nashorn script

Throughout this chapter, it is assumed that you have beginner-level experience in JavaFX 8. If you do not have experience in JavaFX, please learn JavaFX before reading this chapter.

JavaFX Support in jjs

The jjs command-line tool lets you launch JavaFX applications created ...

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