File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JavaFX and the fly likes Is JavaFX going to be a part of the  JDK 7 or 8 ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JavaFX
Bookmark "Is JavaFX going to be a part of the  JDK 7 or 8 ?" Watch "Is JavaFX going to be a part of the  JDK 7 or 8 ?" New topic

Is JavaFX going to be a part of the JDK 7 or 8 ?

Frank Jacobsen
Ranch Hand

Joined: May 17, 2002
Posts: 358
I just heard today that JavaFX is going to be a part of the JDK as a possibility instead of swing ?

Somebody know if that is true ?

Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3152

I dont think this is true. Swing isn't going to be replaced. Just that the way the JavaFX applications are written would be different in JavaFX 2- More of java like syntax than the JavaFX Script. From what I know with JavaFX 2, UI created in JavaFX can be more easily integrated with Java applications.

One can read the roadmap:

Mohamed Sanaulla | My Blog
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
JavaFX isn't part of the Java 7 roadmap, but I think it's too early to say anything about Java 8. My impression was that it will be a lot closer aligned to Swing (more like a big Swing update than a separate API, actually), so it may become part of the JRE at some point.
Rob Spoor

Joined: Oct 27, 2005
Posts: 20276

Swing will not be removed from Java anytime soon. It would break too many applications if they all of a sudden require an extra library which isn't supplied. That's the drawback of public APIs - once something is in there it's almost impossible to get it out without breaking existing code.

As for using JavaFX as the main toolkit, I don't think it offers much over Swing. Last time I checked Swing had more and more powerful controls than JavaFX (JSplitPane, JTabbedPane, JTable come to mind). That would mean I would need to create these controls myself (or find a JavaFX library that has done it for me) before I can use them. I would keep using the "old" Swing controls, and I don't think I would be the only one.

How To Ask Questions How To Answer Questions
I agree. Here's the link:
subject: Is JavaFX going to be a part of the JDK 7 or 8 ?
It's not a secret anymore!