Some of my favorite things about the JavaFX SDK Preview



I'm sure you all saw that our JavaFX team released a preview of the SDK at the end of July. I've been happily tinkering with it for the last few days. If you are hacking with AJAX, moonlighting with Silverlight, or fumbling with Flex, I think you should get up close and personal with it too, and see what its all about.

We've been talking about JavaFX in various ways for some time now, so you probably already know that its for building rich client applications, that it itself is built using Java, and that it will span multiple devices - from small mobile phones through TV settop boxes to the PC desktop and browser. Most importantly, if you are a traditional Java programmer (I include myself), you will notice there's a paradigm shift. A shift moving from the Java programming environment, whose generality spans quite an astonishing range of applications, to a programming environment specially designed for those amongst us with more developed visual design skills than technical ones (sadly, I cannot include myself). Those who are focused on one kind of application: interactive and fabulous looking.

Looking ahead a little, the plan here is to release the final version of the SDK for the desktop at the end of this year and a preview of the mobile version next March or so. I say or so, not just because schedules are schedules, but because we are ready to adjust based on the feedback we get from this preview release.

Anyhow, some of my favorite things about this preview release are:-

The Language: JavaFX Script

Described in full in the language guide included in the SDK, this new language is highly declarative (i.e. it says what its going to do, rather than saying how to do it), with features like data binding to let you to bind one variable to another variable. Like,

let oneVariable = bind anotherVariable;

(I did say it was declarative). Or like the triggers feature, so that when the value of one variable is replaced, you can have something else happen at the same time.

attribute oneVariable
    on replace doSomethingElse();

To a Java programmer its going to be an easy new language to pick up because it shares much of its syntax with the Java language. To a designer, its going to be an easy new language to pick up because its clean, straightforward and does on the screen what it says in the code. And it has no baggage to carry.

The APIs

Neatly divided into two profiles (which you can see here) - the common profile for all the APIs that will be available on every device, and the desktop profile for all the APIs that make sense only for applications on a desktop. There's a mobile profile to come of course in the mobile release next year, which will have the common profile plus APIs that make sense on mobile devices.

As part of the common profile, you have the scene graph and the media JavaFX APIs. The GUI of an application is modeled as a graph of visual nodes, (each node being a shape, line, piece of text, GUI widget or embedded media), that moves, twists, rearranges as the user interacts with it. The scene graph API in JavaFX is especially well suited to the transition effects and animations that make all the difference between a user experience and a captivating user experience. The media supported in the scene graph includes a player control and support for OS native formats. You'll remember we inked a deal with On2 to provide cross device media support in May. Well that will have to wait a little longer before we can put that in. But we're all crossing our scene graph nodes that it will be soon.

The desktop profile includes the common profile, plus some desktop specific extras like...many of the tried and tested Swing widgets we know and love: buttons, combo boxes, lists and so on. So no shortage of the basics you need there.

And of course, being built in Java and on Java, you can always reach down into the underlying Java APIs for your favorite Java API if you would like to use that in your application too.

NetBeans integration and Project Nile Plugins

Naturally, the SDK is available pre-integrated with NetBeans 6.1 which is how I've been looking at it, as have others. The language and APIs are supported in the IDE with all the things you would expect like syntax coloring and checking, debugging and so on. Together a tutorial and a range of samples. The samples are generally short and to the point. Want to see how to draw polygons ? There's a sample just for that. Want to see how to use keyframe animation to bring life to randomly moving particles ? There's a sample just for that. Transparency, color gradients, bounce a ball ? Check, check, check.

Also included in the SDK is a collection of plugins (codenamed Project Nile) to Adobe Photoshop and Illustrator so you can keep working on the art there, and use Project Nile to export it into your JavaFX application and bring some life to it.


My other favorite thing is that this is all running on Java SE. So applications created in JavaFX aren't just running on any old VM, its running on a supremely stable, scalable and high performing runtime. But I don't have time to tell you about all that just now.


There's more to the SDK than just my favorite things. If you've been curious about JavaFX, now is a good time to take a look for yourself.


Comments:

Nice to see integration with Photoshop. But what about open source alternative namely Gimp. Is there a plugin for Gimp planned?

Posted by Dominique on August 20, 2008 at 02:43 AM PDT #

We don't have any plans to support export from Gimp to JavaFX at this point. We'll see how the feedback on the SDK goes of course, but right now it looks like putting our effort into making it work for the Adobe tools will reach the most people.

Posted by Danny on August 20, 2008 at 07:12 AM PDT #

I need more compatibility from JavaFx to Java. Because Java is the principal programming language’s JVM. I don’t care to use the Scripting API for communicate with object building in JavaFX. More compatibility and integration is hope.

Sorry for the worse English.

Posted by Leonardo on August 20, 2008 at 08:34 AM PDT #

I think that it has been publicly stated that jfx will be open sourced. I don't know if this includes Nile. If it does, then a port to Gimp should be fairly straight forward.

Posted by Les Stroud on August 21, 2008 at 03:16 AM PDT #

I'm also expecting to see the entire JavaFX runtime and plugins open sourced.
A plugin for Gimp is not yet implemented but there's already a native plugin for Inkscape in the next release of Inkscape.

Posted by Silveira Neto on August 24, 2008 at 03:40 AM PDT #

when/where is JWebPane? It seems that JWebPane alone would close to obliterate arguments for using Adobe AIR. I think you guys are making great progress. One suggestion: please take a look at some of the binding syntax/ease of use for Silverlight and Flex. Having a sophisticated and sexy grid bind to a Restful back end spitting up JSON/XML takes a single line. This is the kind of binding we really need to plumb things together.

Posted by Jin Chun on August 31, 2008 at 07:23 AM PDT #

Post a Comment:
Comments are closed for this entry.
About

dannycoward

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today