JavaFX was announced at JavaOne.... in 2007, and we are now seeing a preview release.
Josh Marinacci of the JavaFX team put together a post with an example that builds the following:

The code for this is simply:
JAVA:
-
-
package blogdemo;
-
-
import javafx.scene.*;
-
import javafx.scene.paint.*;
-
import javafx.scene.geometry.*;
-
import javafx.application.*;
-
import javafx.scene.transform.*;
-
import javafx.input.*;
-
import javafx.animation.*;
-
import java.lang.System;
-
-
var angle = 0.0;
-
-
Frame {
-
windowStyle: WindowStyle.TRANSPARENT visible: true
-
width: 400 height: 400
-
stage: Stage {
-
fill: null
-
content: Group {
-
translateX: 100 translateY: 100
-
content: for(i in [0..10]) {
-
// here is the magic with binding
-
width: 100 height: 100 arcHeight: 10 arcWidth: 10
-
transform: bind [
-
Transform.rotate(-i*36+angle/2,50,50),
-
Transform.translate(angle/4,0),
-
]
-
}
-
}
-
}
-
}
-
}
-
-
var anim = Timeline { keyFrames: [
-
KeyFrame { time: 0s values: angle => -360 tween Interpolator.EASEBOTH },
-
KeyFrame { time: 2s values: angle => 360 tween Interpolator.EASEBOTH },
-
]
-
autoReverse: true
-
repeatCount: Timeline.INDEFINITE
-
};
-
anim.start();
-
And you can check out the application if you have Java 1.6 installed.
Michael Coté got together with the Sun folks and recorded a demo and interview:
I am interested to see what Sun does with JavaFX, but I have to admit to being underwhelmed and more excited about what Sun could do with the Java plugin and have that as a way to interact with Ajax applications.


23 Responses to “JavaFX: The preview has landed”
Trackbacks/Pingbacks
Symptoms Of Low Vitamin D…
Sites of interest we have a link to…
2011…
My brother suggested I might like this web site. He was entirely right. This post truly made my day. You cann’t imagine just how much time I had spent for this info! Thanks!…
dating site icebreakers…
we came across a cool site that you might enjoy. Take a look if you want…
Great website……
[...]here are some hyper-links to sites that we link to as we feel they are really worth browsing[...]……
Trackback for a Great Article……
[... ]Left you a trackback for your readers to get more info[... ]………
Related………
[... ]just beneath, are numerous totally possibly not related sites to our bait, however, they are absolutely worth going over[... ]………
Related………
[... ]just beneath, are numerous totally possibly not related sites to our bait, however, they are absolutely worth going over[... ]………
Sources……
[...]check below, are some totally unrelated websites to ours, however, they are most trustworthy sources that we use[...]………
Sources……
[...]check below, are some totally unrelated websites to ours, however, they are most trustworthy sources that we use[...]………
Links……
[...]Sites of interest we have a link to[...]………
Sources……
[...]check below, are some totally unrelated websites to ours, however, they are most trustworthy sources that we use[...]………
Sources……
[...]check below, are some totally unrelated websites to ours, however, they are most trustworthy sources that we use[...]………
Great website……
[...]here are some hyper-links to sites that we link to as we feel they are really worth browsing[...]……
Links……
[...]Sites of interest we have a link to[...]………
The best website………
[...]here are some links to sites that we link to because we think they are worth visiting[...]………
Trackback for a Great Article……
[... ]Left you a trackback for your readers to get more info[... ]………
Recommeneded websites……
[...]Here are some of the sites we recommend for our visitors[...]………
Related………
[... ]just beneath, are numerous totally possibly not related sites to our bait, however, they are absolutely worth going over[... ]………
Links……
[...]Sites of interest we have a link to[...]………
… [Trackback]…
[...] Find More Informations here: utropicmedia.net/blog/javafx-the-preview-has-landed [...]…
… [Trackback]…
[...] Read More here: utropicmedia.net/blog/javafx-the-preview-has-landed [...]…
… [Trackback]…
[...] Find More Informations here: utropicmedia.net/blog/javafx-the-preview-has-landed [...]…
… [Trackback]…
[...] There you will find 66465 more Infos: utropicmedia.net/blog/javafx-the-preview-has-landed [...]…