• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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: 75716
354
  • 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: 7113
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: 25477
180
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.

 
Marshal
Posts: 27214
87
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
 
Farmers know to never drive a tractor near a honey locust tree. But a tiny ad is okay:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic