Meaningless Drivel is fun!*
The moose likes HTML, CSS and JavaScript and the fly likes JavaFX Script is a alternate to JavaScript ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "JavaFX Script is a alternate to JavaScript ?" Watch "JavaFX Script is a alternate to JavaScript ?" New topic
Author

JavaFX Script is a alternate to JavaScript ?

Mohammed Yousuff
Ranch Hand

Joined: Oct 17, 2007
Posts: 198
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


My Thoughts : http://passion4java.blogspot.com
Try not to become a man of success but rather to become a man of value.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42608
    
  65
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.


Ping & DNS - my free Android networking tools app
Mohammed Yousuff
Ranch Hand

Joined: Oct 17, 2007
Posts: 198
may i know what advantage it brings when compared with our old friend Applets
tom scott
Greenhorn

Joined: Dec 05, 2004
Posts: 3
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

Joined: Oct 17, 2007
Posts: 198
thanks a lot Tom, for your information.

is there any more advantage in terms of performance when compared with Applets?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42608
    
  65
Probably not, since JavaFX uses the same class libraries. It's just a different notation and programming model.
tom scott
Greenhorn

Joined: Dec 05, 2004
Posts: 3
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 ...
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

"Mohammed Yousuff M N",
Please check your private messages regarding an important administrative matter.
-Ben


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
James Weaver
author
Ranch Hand

Joined: Oct 11, 2007
Posts: 40
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


Thanks,<br />James L. (Jim) Weaver<br /><a href="http://JavaFXpert.com" target="_blank" rel="nofollow">"Helping you become a JavaFXpert" weblog</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JavaFX Script is a alternate to JavaScript ?