Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Is JavaFX the up and coming framework?

 
Marshal
Posts: 69395
276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here I was last week, here, telling somebody to learn JavaFX rather than Swing, and I had somebody disagree with me. I didn't press it in case I misled the rest of the people on the thread.

But is JavaFX the next up and coming big thing, or was Brett Spell right that JavaFX never got off the ground?
 
Sheriff
Posts: 3036
12
Mac IntelliJ IDE Python VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The general consensus seems to be, yes, JavaFX is replacing Swing, although Swing will continue to be supported, and seems to be inter-operable with JavaFX. However, the interest in developing rich clients in Java is small, so it makes the fight pretty low profile. The possible exception is Android apps, but I don't think Swing is even an option for those.
 
Campbell Ritchie
Marshal
Posts: 69395
276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. You can't use Swing on Android, can you.
 
Sheriff
Posts: 21941
106
Eclipse IDE Spring VI Editor Chrome Java Ubuntu Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Neither Swing nor JavaFX is part of the Android API, which you can find at https://developer.android.com/reference/packages.html. I don't know if it's possible to include either in Android, as the way Android handles events et all is quite different.
 
Greg Charles
Sheriff
Posts: 3036
12
Mac IntelliJ IDE Python VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What I don't know about Android would fill ... well, a book about Android. However I see some nascent attempts to get JavaFx apps running on Android, e.g., this article. I haven't seen anything similar for Swing.
 
Author
Posts: 253
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Campbell,

In my view, to be a professional Java programmer, it is important to know both Swing and JavaFX. There are, obviously, many lines of Swing code in use. So knowledge of Swing is currently quite helpful. But, to me, JavaFX points to the future.

BTW: For the above reasons, I expect to be writing about both Swing and JavaFX for a long while.
 
Rob Spoor
Sheriff
Posts: 21941
106
Eclipse IDE Spring VI Editor Chrome Java Ubuntu Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Herb Schildt wrote:In my view, to be a professional Java programmer, it is important to know both Swing and JavaFX.


If you mean "to be a professional Java GUI programmer", then perhaps. However, for web applications, I don't think you need to know either.
 
Herb Schildt
Author
Posts: 253
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rob,

I understand your point, but I stand by what I said. For today's highly graphical computing environment, I see GUI programming as a fundamental skill. Something that is part and parcel of being a programmer. Thus, I think that all programmers need at least passing knowledge of the essentials of GUI programming. For Java, that means Swing and JavaFX.
 
Sheriff
Posts: 67399
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've been using Java for web applications since 1998, and have never had any reason to use AWT, Swing, or JavaFX.

But I understand what you are saying, Herbert: I cut my UI teeth on X Windows programming, as well as Windows desktop programming (16 and 32 bit). Understanding how such GUIs work is a fundamental concept every programmer should have knowledge of (even if it's not in Java).
 
joke time: What is brown and sticky? ... ... ... A stick! Use it to beat this tiny ad!
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic