Showing posts with label JavaFX. Show all posts
Showing posts with label JavaFX. Show all posts

Wednesday, May 14, 2008

JavaFX Ep2 : "Hello World"

Say "Hello World"
New Project> JavaFx> JavaFx Script Application












Let's start like instructed by trying to run the Hello World example featured on the JavaFX tutorial page.

import javafx.ui.*;

Frame {
title: "Hello World JavaFX"
width: 250
height: 50
content: Label {
text: "Hello World. From Javalobby!"
}
visible: true
}

























This code uses the declarative source code "annotation", it is also possible to use the procedural source code "annotation".

  var win = new Frame();
win.title = "Hello World JavaFX";
win.width = 250;
win.height = 50;
var label = new Label();
label.text = "Hello World. From Javalobby!";
win.content = label;
win.visible = true;

[JavaFX Tutorial]Getting start JavaFX with Netbeans IDE 6.1

How to install JavaFX plugin to Netbeans 6.10 IDE
  1. Download and Install Netbeans IDE 6.1
  2. Download this Developmental built of the JavaFx Netbeans 6.1 plugin that base on OpenJFX compiler.
  3. Unzip the local file
  4. In Netbeans program Main Menu Choose Tool>Plugin.
  5. Select Downloaded tab and click Add Plugins.
  6. Select all the .nbm files included in the downloaded bits, and click Open.
  7. Restart the IDE.