O'Reilly logo

JavaFX 1.2 Application Development Cookbook by Vladimir Vivien

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

Controlling JavaFX applets from JavaScript

Part of the appeal of JavaFX as a browser-based deployment platform is its complete integration support between the browser and your JavaFX applets. When you deploy an applet, the new Java Plugin (see Packaging your app as an Applet) provides full two-way programmatic integration between your applet and JavaScript. In this recipe, we will see how you can use JavaScript to update attributes and invoke functions from an embedded applet.

Getting ready

Before you embark on the techniques presented in this recipe, you should be familiar with the deployment of your JavaFX applications as browser-embedded applets. If you are not, review the recipe Packaging your app as an Applet, presented earlier in this chapter. ...

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