aspose file tools*
The moose likes Other Languages and the fly likes JavaFX Anybody? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Other Languages
Bookmark "JavaFX Anybody?" Watch "JavaFX Anybody?" New topic
Author

JavaFX Anybody?

William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12681
    
    5
Sun made a big deal at JavaOne about the new JavaFX family of products.
Part of this family is JavaFX Script - yet another scripting language :roll: which I am currently looking into. I am wondering if any other ranch users have worked with JavaFX Script and what your impression is.

Bill


Java Resources at www.wbrogden.com
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9243
    
    1

How do you feel it when you use it? Easy to master it?


SCJP 1.4, SCWCD 1.4 - Hints for you, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12681
    
    5
The developer who will be most comfortable with JavaFX is going to be somebody already familiar with Swing user interfaces. JavaFX really simplifies the code needed to create Swing GUIs.

It is easy to get started with JavaFX if you are using NetBeans or Eclipse, both IDEs have plugins that help with the syntax. I followed some examples at this introduction. It turns out that the current installation of the plugin for NetBeans is even simpler than that intro shows, but the samples are good.

This page summarizes the JavaFX scripting language.

Bill
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9243
    
    1

Yes, JavaFX would be more friendly towards a Swing developer. Hope Sun comes up with something in the JavaFX family that can be ideal for web app developers.
M Easter
Ranch Hand

Joined: Feb 11, 2007
Posts: 133
I haven't worked with JavaFX but I saw a presentation by Weiqi Gao at a recent StL JUG. Notes are posted at http://www.weiqigao.com/blog/

My nano-summary is this:

-- JavaFX Script is in fact a DSL for Swing development. i.e. A major goal is to simplify Swing development, and this drives some of the language constructs.

-- That said, the designer (Chris Oliver?) is a "language philosopher" and has some neat ideas. The language is influenced by a variety of sources, the most interesting of which include XPath/XQuery and SQL.

my syntax might be off but an example is

var myArray = [0..12];
var evenNumbers = myArray[. % 2 == 0];

The "dot operator" implies iteration and acts as the current "node" over the array.

-- A final thought: the language is statically typed. There is a compile phase and then the result is interpreted. This is interesting given the fact that so many dynamically-typed languages are media darlings right now.


HTH


M Easter
Software Composer - http://codetojoy.blogspot.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JavaFX Anybody?
 
Similar Threads
Future of JavaFx
Explain these syntax errors please
JavaFX Script is a alternate to JavaScript ?
Formulas in the Text control
Good Book for JavaFX