Fun Begins with :JavaFX

This section introduces JavaFX API

Saying Hello-World in colorful way or multi-media way. 

 
  • With in Java Platform: JavaFX is a vertical API when comparing of Java Swing.
  • Comparing with Other APIs:  The Adobe AIR, Google Web Kit, Sliverlight or JavaFX
  • Thinking above, below shows my views ( Words matching with theme images)
    • Dumped More tools, more reactants tin the tube, easier to do, more flying power , more fun to play around and so on. (To view these animated images, you need JavaScript enabled browsers).

    dumpedtubeeasyflyplay

Step: 1 Click on New Project from File menu

Create a folder

Click to Finish

Note the script of JavaFX is loaded

Code snippet

package mmjavafx1;

import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.text.Text;
import javafx.scene.text.Font;

/**
* @author Manas8
*/

Stage {
title: "Application title"
scene: Scene {
width: 250
height: 80
content: [
Text {
font : Font {
size : 16
}
x: 10
y: 30
content: "Application content"
}
]
}
}

 

 

Step: 3 First Test  run of the project

Step: 4 Edit the code