Aug 05 2008

Learning Curve Journal, Part 1: Exploring JavaFX Script part1

Published by mac0002 at 2:46 pm under technology

pass4side

In August and September 2007, John O’Conner of the Sun Developer Network wrote a series titled “Learning Curve Journal” designed to help users get started with the JavaFX Script programming language (shortened to JavaFX Script in the remainder of this article). A number of significant advances have been made to the language since then. Perhaps most important is the availability of a compiler-based version of JavaFX Script, which replaces the earlier interpreter-based version of the language. The Learning Curve Journal described the use of the interpreter-based version of the language. The Learning Curve Journal has been updated to show you how to use the compiler-based version of the language. Other changes have been made to make the articles current.

As before, Part 1 of the series gets you started with a simple JavaFX program, that is, a simple program written in the JavaFX Script language. You’ll learn how to set up your environment for programming in JavaFX Script and how to build and run a JavaFX program. Part 2 focuses on the declarative style of coding enabled by JavaFX Script. You’ll see how this style can make the code for a graphical application simpler and more intuitive. Part 3 shows you how to use JavaFX Script functions to implement actions in a Java FX program. Part 4 demonstrates how to use JavaFX Script to access a web service. In doing that, it also shows how easy it is to access Java technology classes, such as Swing classes, from JavaFX Script.

JavaFX Script is a new scripting language that developers can use to create dynamic graphical content. On the desktop, the language provides libraries to help you use the Swing user interface (UI) toolkit and Java 2D APIs conveniently. It doesn’t replace either Swing or Java 2D; the goal is to make those APIs more accessible to rich content developers. In other environments, such as mobile systems, JavaFX Script makes use of user interface technologies other than Swing. JavaFX Script enables you to write visually rich applications that run across platforms and operating environments.

The language provides both declarative and procedural syntax. You can declaratively create a rich user interface, and then you can add event-handling routines and operations.

However, most of us have to start more modestly, and that’s the purpose of this article. Its goal is to show you how to get started with JavaFX Script. First, you’ll need the following:

Trackback URI | Comments RSS

Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-Spam Image