r/java • u/vprise • Nov 19 '15
Should Oracle Spring Clean JavaFX?
https://www.codenameone.com/blog/should-oracle-spring-clean-javafx.html20
u/qner Nov 19 '15
I didn't know that javafx is on the decline. Quite on the contrary, I thought it only started and would grow well rounded and better years to come. Picked it up with java 8 and was finally satisfied with building GUIs for applications + Lamdas & Streams. Breaks my heart a little bit. Thanks for the write up.
10
u/markee174 Nov 19 '15
Very well written article with some excellent original research to back up the claims.
10
u/kodifies Nov 19 '15
assuming the only use for JavaFX is ONLY for a UI is also a failing...
JavaFX can be used as a cross platform (without extra install) method for accessing 3d hardware.
It really needs some kind of cross platform shader language implementation. Implementing a truly 3d UI with JavaFX is fairly trivial, but the addition of a general purpose cross platform shader language would benefit both use cases...
1
u/GrayDonkey Nov 20 '15
I never thought JavaFX was bad. Desktop Java apps are on the decline and some super-duper Java gui library isn't going to cause a renaissance in Java thick-gui apps.
2
u/vprise Nov 20 '15
Notice that the article never called it bad. It just said that it never picked up and that for all intents and purposes Oracle dumped it and didn't send out a memo.
1
u/squishles Nov 27 '15
That fxml thing was stupid anyway. if I wanted to do my ui in xml I'd have just written html and jammed it into the webview anyway.
I did like it's java based components though there is a whole weird redo of the collections api that's a bit more functional paradigm friendly buried in that thing for some reason.
1
u/vprise Nov 28 '15
Redo of the collections API? You mean the component container hierarchy?
1
u/squishles Nov 29 '15
it's like they hybridized them to act like stacks you don't have to manually pop, I guess making use of the new streams stuff. I only did one fx app for fun before dropping it about a year back so my memory is foggy but the tables used them extensively. they missed a bit of an oportunity to subclass those to the regular collections api, data driven pushes can be usefull for more than thick client ui.
0
u/m-apo Nov 19 '15 edited Nov 19 '15
I evaluated JavaFX for my desktop app's UI last week.
The Modena skin looked just bland compared to native OSX widgets. There was a 3rd party extension that would have provided the OSX look, but there were some issues with it and I didn't want an emulated approach. I switched to SWT and the app looks as it should.
Except, now I need to hack the application menu and the app icon because SWT provides those on its own and the defaults are not easy to modify. I guess there's no silver bullet, but at least for me the native widgets were a definite requirement.
3
u/lukaseder Nov 20 '15
Interesting opinion. I understand that if you're in the desktop application business, you'll be disappointed by JavaFX's performance on a community level. But I think this article is exaggerating the importance of this programming niche.
Along with Java, C is continuously rated top on the TIOBE index, despite being a horrible environment for desktop application development.
Perhaps, Java just isn't such a general purpose language as many people dreamed it would be. For many reasons, among which, certainly, lack of community leadership in niches like this one.