JavaFX Script for Java developers, Part 2

6 February 2009

Comfortable arrays

Arrays in JavaFX are easy-to-use and act more like sequences. Here’s one:

var letters = ['A', 'B', 'D'];

Let’s print it,

println(letters);

Displaying an array in JavaFX

Click here to read more…

Advertisements

JavaFX Script for Java developers, Part 1

25 January 2009

First touch

The main method in JavaFX is called run().

function run(args: String[]) {
    // implementation
}

Let’s print something to the output. System.out.print() is simply print() in JavaFX.

function run(args: String[]) {
    print("Hello from JavaFX!!");
}

Moreover run() is not mandatory for the developer :

Click here to read more…