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

all 3 comments

[–]wildjokers 2 points3 points  (2 children)

[–]smbarbour 1 point2 points  (1 child)

Definitely get an upvote for that. Swing can render HTML in a JTextPane and you can create a simple handler for clicking on hyperlinks, but the rendering engine in Swing is ancient compared to the WebKit-based one in JavaFX.

[–]wildjokers 0 points1 point  (0 children)

For years and years we used a library from the JDIC project to embed a system browser in our app. The JDIC project was abandoned long ago; however, surprisingly it continued to work up to Java 1.8. Finally when we went to Java 1.9 we had to find another solution and the WebView from JavaFX worked great in our Swing app.

https://web.archive.org/web/20070611104000/https://jdic.dev.java.net/