On Jul 23, 7:49 pm, Kram <[email protected]> wrote:
> Ok, so I have actually been writing a fair few small JavaFX apps, and
> I love the FXScript language and the entire JavaFX experience, but I
> don't really know how exactly all the parts fit together.
>
> I have a few questions,
>
> So basically, how is JavaFX implemented? I understand that JavaFX is a
> platform, and the FXScript language is a language on top of the
> platform, and hence there must be a FXScript compiler. What does it
> compile down to?
> Is is all just bytecode in the end that runs on the JVM?

Yes.  It's just Java bytecode in the end.


> Why does JavaFX require JDK 6u10 (what was so special about it?) I
> have heard that "most" of JavaFX can actually run on JDK 5 (not sure
> on which revision though), is that just because its all just bytecode
> in the end?

It doesn't require 6u10.  It'll run on any version of Java 1.5 or
higher.  Infact Netbeans JavaFX support is 'hardcoded' to use Java
1.5.

The big difference is user experience, as 6u10 introduced the new
browser plugin which offered faster startup and the ability to drag
applets out of the browser.

I also think it included the JavaFX runtime in the distribution, if I
recall correctly, which means that 6u10 users didn't need to wait for
the JavaFX runtime to be downloaded on first JavaFX app startup.

I don't think this JavaFX + JRE bundling has included, I don't recall
a new JRE coming out when JavaFX 1.2 came out.

Certainly there is no dependancy between releases of the two.

> What exactly is the JavaFX runtime? How does it all fit in to the
> puzzle? Can you run JavaFX without any JRE installed (i.e. just the
> run time by itself)?

No, JavaFX depends on the JRE, I'm sure in the future with the Jigsaw
stuff the exact dependancies may change, but lets not open that
pandora's box again right? :)

The JavaFX runtime includes all the media stuff for playing media, as
well, I guess, as the other bits and pieces that support everything
under javafx.*

JavaFX runtime is versioned, and which specific runtime you use is
embedded in the jnlp file.  It is retrieved and cached in your
webstart cache the first time a JavaFX app requiring that version
runs,  so if Version 1.2 is already on your computer from another
app's usage, your app will use it.

> I know I'm asking very general questions, but some perspective on
> this, maybe some articles I could read, would be greatly appreciated!

Do yourself a favor and pick up a copy of this book:

http://www.amazon.com/Pro-JavaFX-trade-Platform-Technology/dp/1430218754/ref=sr_1_2?ie=UTF8&s=books&qid=1248172765&sr=1-2

Some sites (off the top of my head)

 http://jfxtras.org
 http://blogs.herod.net/javafx/ <- Plug, plug
 http://learnjavafx.typepad.com/
 http://fxexperience.com

> Thanks a lot.
> Mark

Apologies if I got anything wrong, I'm sure someone will politely
correct me :)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to