They must have thought they needed to compete with OpenLaszlo. :P On 2011-12-17, at 12:04, Raju Bitter wrote:
> That's a bit surprising. I actually like the JavaFX Script syntax, > looked very clean and compact. > http://docs.oracle.com/javafx/2.0/api/javafx/fxml/doc-files/introduction_to_fxml.html > > <?language javascript?> > > <?import javafx.scene.control.*?> > <?import javafx.scene.layout.*?> > > <VBox xmlns:fx="http://javafx.com/fxml"> > <fx:script> > importClass(java.lang.System); > > function handleButtonAction(event) { > System.out.println('You clicked me!'); > } > </fx:script> > > <children> > <Button text="Click Me!" onAction="handleButtonAction(event);"/> > </children> > </VBox> > > JVM scripting language support > The <fx:script> tag allows a caller to import scripting code into or > embed script within a FXML file. Any JVM scripting language can be > used, including JavaScript, Groovy, and Clojure, among others. > > But who'd want to build JavaFX based UIs now?
