Nandini Ramani Introduces the JavaFX Preview SDK

Unable to load Flash player.

Click to Select

Do you like this entry?
Star Star Star Star Star

Rating: 4.09

Votes: 172


Date:
Tuesday, 5th August 2008

Views:
400120

Read 15 comments

Get this entry as an
iTunes podcast here

Description

Engineering Director Nandini Ramani introduces JavaFX Preview SDK and shows how to use NetBeans IDE 6.1 With JavaFX to run samples and create an application.

Comments

Cindy Church says:
Thursday, 14th August 2008 01:14:11

Hi Mark, We had to fix the indentation manually just for the purposes of the screencast. If we did not indent the code, some of the lines went beyond the right margin of the text area, and you couldn't read the code. If you'd would like to try recreating that demo, here is the sample code: /* * Main.fx * * Created on Jul 29, 2008, 12:44:07 PM */ package circledemo; import javafx.application.Frame; import javafx.application.Stage; import javafx.scene.text.Text; import javafx.scene.Font; import javafx.scene.FontStyle; import javafx.scene.geometry.Circle; import javafx.scene.paint.Color; import javafx.animation.Timeline; import javafx.animation.KeyFrame; import javafx.animation.Interpolator; /** * @author breh */ var radius:Number = 40; var color:Color = Color.RED; var opacity:Number = 0.0; // place your code here Frame { title: "Circle Demo" width: 200 height: 200 closeAction: function() { java.lang.System.exit( 0 ); } visible: true stage: Stage { fill: Color.BLACK content: [Text { font: Font { size: 24 style: FontStyle.PLAIN } x: 25, y: 30 opacity: bind opacity fill: Color.WHITE content: "Hello JavaFX" }, Circle { centerX: 100, centerY: 100 radius: bind radius fill: bind color } ] } } var t = Timeline { autoReverse: true repeatCount: Timeline.INDEFINITE keyFrames : [ KeyFrame { time : 0s values : [ radius => 40 tween Interpolator.EASEBOTH, color => Color.RED tween Interpolator.EASEBOTH, opacity => 0.0 tween Interpolator.EASEBOTH, ] }, KeyFrame { time: 2s values : [ radius => 60 tween Interpolator.EASEBOTH, color => Color.YELLOW tween Interpolator.EASEBOTH, opacity => 1.0 tween Interpolator.EASEBOTH, ] } ] } t.start();


Cindy Church says:
Thursday, 14th August 2008 01:16:42

Sorry about that previous message. You can copy the code from here: http://blogs.sun.com/javafx/entry/nandini_ramani_introduces_the_javafx#comments


david says:
Thursday, 14th August 2008 03:17:24

To solve the buffering problem, I just paused the video and went and did something else for 5-10 minutes. Then I came back and played it without buffering issues. Although the intro was a bit too long, I felt the video described what the product could do, and how to do it very well. It would have been useful if it told us about further resources about JavaFX, although I am sure I can find them anyway.


Leo C says:
Monday, 1st September 2008 03:53:10

Good demo. Wish it was a big larger though. I'm an experienced Java web developer, so I figured JavaFX would be extremely easy for me to learn. Boy, was I wrong. I need to buy some new books.


Add comment

Bookmark this page: Delicious Furl Simpy Slashdot Technorati Digg Digg

< Previous entry | Next entry >