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.
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.
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.
10
u/GullibleRaspberry9 May 13 '20
Good news about Swing and AWT. They need to stay in the core and get some development improvements and bug fixes.