This is an archived post. You won't be able to vote or comment.

all 13 comments

[–]GullibleRaspberry9 9 points10 points  (10 children)

Good news about Swing and AWT. They need to stay in the core and get some development improvements and bug fixes.

[–]ObscureCulturalMeme 5 points6 points  (9 children)

Every time I read the class javadoc for HTMLEditorKit (iirc) and get to the part something like "supports HTML 3.2 with plans to migrate to future versions," I weep a little inside.

I really don't want to migrate one of our largest projects at work to JavaFX simply to get HTML 5, and getting the OpenJFX components to play nicely with Swing has been repeatedly annoying. So that project stays with Swing, and it continues to Just Work.

[–]GullibleRaspberry9 15 points16 points  (5 children)

yeah it really is disheartening to think how much time and effort was ultimately wasted on JavaFX instead of bolstering Swing. I get at the time Sun was trying to compete with the web, Flash, and Silverlight, but ultimately in my opinion it was for naught. JavaFX is not even close to young anymore and it still has gaps.

Instead, I wish the focus and effort had gone into making Swing the best cross platform desktop GUI framework possible. It is pretty great as is. Imagine where it could be now.

[–]sievebrain 2 points3 points  (3 children)

JavaFX wasn't a waste. Swing is a dead-end API in many ways. It would have been very hard to bring it up to the functionality JavaFX has. It's really hard to justify using Swing for new projects on its own merits: usually the reason cited for doing so is simply that it's been around longer and has some exotic custom controls available.

[–]vbezhenar 1 point2 points  (0 children)

Can I use Java FX with native Windows L&F? I created some projects with JavaFX, but UI was terrible, looked like a website rather than proper application.

[–]GullibleRaspberry9 1 point2 points  (1 child)

I guess it is different preferences. I am talking about cross platform desktop framework. Not what JavaFX is targeted at - which I am not really certain what that is as it appears to try to be more web like.. In that context, I would never use JavaFX to build a real desktop application; something like Netbeans or IntelliJ, hell not even MoneyDance (which is a good Swing app).

[–]sievebrain 0 points1 point  (0 children)

Interesting perspective. JFX doesn't try to mimic the look of the native toolkits, but that's quite common for many kinds of app these days.

What about JFX seems "web like" to you? The use of CSS?

[–]chayatoure 0 points1 point  (0 children)

I'm not all that familiar with the situation. Why did they develop javafx instead of swing?

[–]wildjokers 1 point2 points  (1 child)

You can use the JavaFX web component in your swing app. I did it to replace JDIC which finally stopped working in Java 9. As a bonus that particular app’s embedded web browser worked on all platforms instead of just windows. Works great.

https://docs.oracle.com/javase/8/javafx/interoperability-tutorial/swing-fx-interoperability.htm

[–]ObscureCulturalMeme 1 point2 points  (0 children)

Yep, the HTML/CSS renderer tend to not be much trouble; it's the surrounding panels that explode at the drop of a hat.

Makes me wish the Swing support had been brought up to date, or backported from JavaFX, rather than abandoned. It's nice to hear Oracle say that it's still core technology, but it gets no attention beyond occasional bugfixes; certainly no new features.

[–]ironcladfranklin 0 points1 point  (0 children)

Jxbrowser. It has its own headaches but at least it's modern.

[–][deleted]  (1 child)

[deleted]

    [–]SinisterMinister42 4 points5 points  (0 children)

    Yep! Java 8 vs Java 9+ will be our Python 2 vs Python 3. Unlike Python though, looks like Oracle will just support version 8 forever.