A Compiled JavaFX Script Playground - The Assortis Demo

DZone 's Guide to

A Compiled JavaFX Script Playground - The Assortis Demo

· Java Zone ·
Free Resource

Today I'd like to call your attention to a new compiled JavaFX Script demo, named JavaFX Assortis, from the JavaFX Script compiler team.  It's purpose is to enable you to experiment with and learn about various JavaFX Script UI features.  It is my understanding that Assortis means "sampler", or "assortment" in French, kind of like a box of chocolates (I'll spare you the Forrest Gump reference, by the way).  Anyway, here's a screenshot of JavaFX Assortis:


From the panes on the left side you can choose to work with Nodes (graphical objects like Circle), Widgets (UI objects like CheckBox), or come cool samples (like the animated Planetary System shown above).  You can then work with your selected objects in the right panes, altering the code to see the effects.

How can you get access to this demo, you ask?  Just download and build the OpenJFX Compiler, navigate to the demos/JavaFXAssortis directory, and run the following command from the command-line:

ant run

This will cause this demo to be built (if necessary) and executed.  It's a great way to get up to speed quickly on using some of the UI features of JavaFX Script.

Jim Weaver
JavaFX Script: Dynamic Java Scripting for Rich Internet/Client-side Applications

Immediate eBook (PDF) download available at the book's Apress site


Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}