• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JavaFX Script is a alternate to JavaScript ?

 
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is the JavaFX Script can be used with out using the any clientSide scripts...

Or JavaFX Script is some thing similar to GWT or JSF (Server UI Frameworks)

Please let me know your thoughts
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
At the moment, JavaFX Script is a Java client-side technology. It needs a JVM running in a browser, kind of like applets. So, no, it's not quite the same as client-side scripting.

I say "at the moment", because Sun has said that there's be a whole family of products under the JavaFX name eventually.
 
Mohammed Yousuff
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
may i know what advantage it brings when compared with our old friend Applets
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
One advantage of JavaFX script over applets is that the script is easier to write than Java code. Instead of programming with Swing to make GUIs in applets, you use the declarative language of JavaFX. Granted, JavaFX scripts compile to Java bytecode, but it is much easier and faster to write. (I know i'm not saying this right. maybe someone else can explain better.) -- TT
 
Mohammed Yousuff
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks a lot Tom, for your information.

is there any more advantage in terms of performance when compared with Applets?
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Probably not, since JavaFX uses the same class libraries. It's just a different notation and programming model.
 
tom scott
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't know of any other advantages of JavaFX over applets. Well, maybe, it could be that JavaFX is targetted at multiple screens, including desktop, mobile, TV / set-top box, and blu-ray disc players. because of the mobile screen, JavaFX may run more efficiently than applets. but i'm only guessing there.

However, i can say one other thing about JavaFX advantages: If you have done any AJAX programming, you will find that JavaFX does not have the security issues of javascript, and you do not have to deal directly with the complexities of DOM. In JavaFX you can take advantage of the underlying Java technology, provided that you can create the appropriate policies. Most ppl, myself included, haven't taken the time to do that yet. Maybe tomorrow ...
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Mohammed Yousuff M N",
Please check your private messages regarding an important administrative matter.
-Ben
 
author
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JavaFX Script can be deployed as applets, or invoked via Java Web Start. For an example of the latter, see the Freebase Browser post on my "Helping you become a JavaFXpert" weblog:
http://learnjavafx.typepad.com/weblog/2007/10/spotting-javafx.html

To see an example of how to create a JavaFX Script Applet, see the following post from the same weblog:
http://learnjavafx.typepad.com/weblog/2008/03/creating-comp-1.html

Sun has completely revamped the browser plug-in, and is addressing the deployment issues that plagued Java Applets. Take a look at the following web page for details on the Java SE 6 Update 10 project:
https://jdk6.dev.java.net/6u10ea.html
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic