I think I may end up liking this JavaFX thingy after all. Here's a simple script written in JavaFX:
package test;
import javafx.ui.Button;
import javafx.ui.Frame;
import javafx.ui.RootPane;
import java.lang.System;
Frame
{
width:200
height:60
visible: true
title: "JavaFX example"
onClose: operation() { System.exit(0); }
content: RootPane
{
content: Button
{
text: "Click me!"
action: operation() {
System.out.println("Goodbye!");
System.exit(0);
}
}
}
}
I'm a long way away from knowing how to use JavaFX the way that Flash developers can use Flash, but JavaFX has some pretty cool capabilities that could be tapped to make interesting applications. It is geared toward making applications that are delivered through a web browser, through the Java Web Start system, but it can be used to make purely desktop applications as well. Some of the demos are really cool, such as the one where some of Sun's developers used JavaFX to partially recreate the website for Tesla Motors. All you need in order to run those demos is to go here and download the Java Runtime Environment for Windows. If you use a Mac, you should already have everything you need to try them.
Early mornin java is the best :)
Early mornin java is the best :)
You're such a geek, Mike.
(But that's a good thing...)