- my webspace

- my webspace

Latest Comment

Why I must believe in GOD
Testing time is almost passed..there are many colours in lif...
27/06/12 01:43 More...
By Tarun Shekhawat

Allama Iqbal - Selective verse...
Really good work about this website was done. Keep trying mo...
07/03/10 15:04 More...
By Roderick

Allama Iqbal - Selective verse...
Great Job
You have dont a great job of collecting these... Even I had ...
25/08/09 01:01 More...
By Sikandar

O ye who don't believe !
It's like Lehman Brothers :grin
11/10/08 10:31 More...
By anurag Chaturvedi

I Protest
Thanks Sikku for the feedback. I never intend to blame, a...
29/07/08 11:06 More...
By Aminur Rashid


Lost Password?
Home arrow Java arrow Jdeveloper extension for JavaFX
Jdeveloper extension for JavaFX PDF Print E-mail
User Rating: / 0
Written by Aminur Rashid   
Saturday, 20 February 2010

JavaFX is an expressive rich client platform for creating and delivering rich Internet experiences. More on JavaFX can be found at http://javafx.com/.

JavaFX was the Official Rich Client Technology for the 2010 Winter Games. [http://www.oracle.com/us/corporate/press/049166]. I forsee the technology getting a push from Oracle specially after the Sun-Oracle merger. Infact I have read somewhere that JavaFX will be same to java Swing, what JSF was to Struts.

And it was surprising to find there is no support in JDeveloper currently for JavaFX. (Offcourse now with Sun deal, Netbean with JavaFX support goes to Oracle but still for the lovers of Jdev its missing.)


I tried creating one extension for JavaFX support in Jdeveloper. Its based on version 1 of JavaFX. [With the latest sdk of JavaFX we now have compiler for JavaFX files and I will try to adapt extension to support new APIs of JavaFX in near future.]

Installing the extension is simple. Follow the following steps:

1) Download oracle.jdeveloper.javafx.jar to your <Jdev_home>\jdev\extensions folder.

2) Download jfx.zip and extract the jar files to your <Jdev_home> folder. It should save the jar files under <Jdev_home>\jfx\lib folder.

3) A tweak to copy the JFX files to classpath is required. Right click on Project, select Project Properties, select Compiler and add .fx to "Copy File Types to Output Directory."

Adding the extension will enable a new menu under General section as JavaFX. Use the menu to create new JavaFX file with default code.

This will create a new JavaFX file with the following code:

import javafx.ui.*;
import java.lang.System;

var win = Frame {
title: "Test Application"
width: 300
height: 300
menubar: MenuBar {
    menus: Menu {
      text: "File"
      mnemonic: F
      //first item in the menu
      items: [MenuItem {
         text: "Help"
         mnemonic: H
         //on-click operation
         action: operation() {
            MessageDialog {
                title: "About"
                message: "JavaFX Application!"
                visible: true
      MenuItem {
         text: "Exit"
         mnemonic: X
         //on-click operation
         action: operation() {
            //exit the application
content: Label {
text: "New Application"
visible: true

Use the Run menu to run the file.

I hope I can write new extension soon to provide the "compile" and "run' facility with the latest version of JavaFX sdk in Jdeveloper.

StumbleUponDigg This!Bookmark on Delicious

Add as favourites (497) | Quote this article on your site | Views: 4201 | E-mail

Be first to comment this article
RSS comments

Only registered users can write comments.
Please login or register.

Last Updated ( Saturday, 20 February 2010 )
< Prev   Next >
Aminur Rashid