This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

JavaFX Discontinued from java 11+

 
Rancher
Posts: 1171
18
IntelliJ IDE Hibernate Firefox Browser MySQL Database Spring Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JavaFx was announced as the successor for Swing and java.awt, so why did oracle decide to take it out of the jdk, while leaving swing and awt in it?
In 2022 Oracle will no longer support javaFx and by then everyone should have made the switch to the new JavaFX openmodule which will be available as separate download, supposedly to give the developer more freedom over the framework and to get the open source community more involved, while I do think javaFx has it's limitations and some things could be improved, I always liked working with javaFx and wondering what about my already developed applications, will they still work onder the new javaFx open module and why the need to discontinue, there where already modules you could add to increase the javaFx functionality, like controlsfx for example...
 
Marshal
Posts: 79978
397
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well Swing replaced AWT a long time ago, but I am not convinced that Swing and FX have been supported properly. A few years ago, FX was touted as the successor to Swing, but it seems to have fallen by the wayside a little. It might well be better for FX to be supported by a thrid party vendor, who will take an interest in it.
 
Sheriff
Posts: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My experience with converting JavaFX 10 to 11, even with the small programs I converted, is that it is a non-trivial process.  I made the decision to use Maven to control the execution and dependencies.  

Still, there are some really good things that have already come out of the switch.  The big one for me was that FXML files can now actually be in packages of their own.  Pre-11 they had to be in the same package as the controller.

You can see what I've done with my bindings demo here.  The master branch is JavaFX 11 and pre-javafx-11 is... well... pre JavaFX 11.
 
Daniel Demesmaecker
Rancher
Posts: 1171
18
IntelliJ IDE Hibernate Firefox Browser MySQL Database Spring Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Knute Snortum wrote:
Still, there are some really good things that have already come out of the switch.  The big one for me was that FXML files can now actually be in packages of their own.  Pre-11 they had to be in the same package as the controller.


No, they didn't... I always use JavaFx together with Spring Boot and never had any problem keeping everything separate. My fxml I keep in resources/fxml while my controllers were in the subfolders of my java folder...
 
Saloon Keeper
Posts: 28325
210
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Campbell Ritchie wrote:Well Swing replaced AWT a long time ago, but I am not convinced that Swing and FX have been supported properly.



This is rather sad. The SWT GUI toolkit was developed independently of Oracle, presumably because Swing (or maybe AWT) didn't satisfy many people. It has been used in a number of major products, including the Eclipse IDE and the Pentaho product suite instead of Swing (JavaFX didn't come until later).

I realize that desktop apps are relatively unpopular nowadays, but not everything works well using JavaScript in a browser (shudder). It would be nice for there to be some love for GUIs from the Java core.
 
Daniel Demesmaecker
Rancher
Posts: 1171
18
IntelliJ IDE Hibernate Firefox Browser MySQL Database Spring Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Omg now that I, cause of Tim's response, read my own post again I'm horrorfied by the spellingmistakes, I was on my phone and didn't notice the autocorrections, I can't edit it myself anymore, so Somebody of staff pleace adjust my post
Staff note (Knute Snortum) :

Done.

 
Sheriff
Posts: 28331
97
Eclipse IDE Firefox Browser MySQL Database
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Daniel Demesmaecker wrote:I'm horrorfied by the spellingmistakes...



That should be "horrified"...        
 
Daniel Demesmaecker
Rancher
Posts: 1171
18
IntelliJ IDE Hibernate Firefox Browser MySQL Database Spring Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Lol Paul ... my excuses, I'm not native nor did I ever took English in school, so i have the tendency to write as I speak
 
Greenhorn
Posts: 1
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Javafx is supported and has a vibrant community releasing updates every 6 months.  Oracle is one part of the community.  We build applications that don't make sense in a browser and appreciate the UX we can craft with JavaFX.  Noting that javafx as a module is a simple setup configuration,  that's all.  Please check out javafx.io openjfx.io for recent details.
Staff note (Ron McLeod) :

Updated the URL to correct what appeared to be a typo.

 
Campbell Ritchie
Marshal
Posts: 79978
397
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
BM: Welcome to the Ranch
 
The only taste of success some people get is to take a bite out of you. Or this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic