• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Frank Jacobsen
Ranch Hand
Posts: 358
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?

Frank
 
Mohamed Sanaulla
Saloon Keeper
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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: http://javafx.com/roadmap/
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Pie
Posts: 20611
63
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic