Yes, after the failed years of trying to establish JavaFX, they were
probably looking for a language more common in the RIA world.

And the <children> tag is ugly. :-)

On Sat, Dec 17, 2011 at 7:08 PM, Max Carlson <[email protected]> wrote:
> The <children/> tag sure is fugly...
>
> -Max
>
>
> On 12/17/11 9:04 AM, 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?
>
>

Reply via email to