Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JavaFX Anybody?

 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Joe Harry
Ranch Hand
Posts: 10106
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do you feel it when you use it? Easy to master it?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10106
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic