• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JavaFX Anybody?

 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 San
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
It is no measure of health to be well adjusted to a profoundly sick society. -Krishnamurti Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic