I am trying to create a simple web browser for a project, but I am using JEditorPane to render and display HTML. I have heard that JEditorPane should not be used as a browser component because it does not support anything above HTML3.2 (and even then doesn’t display it properly), but I can’t seem to find an alternative for HTML5. Can anyone help me? Thanks in advance.
Share
You can use JavaFX-2 Webview. From the JavaFX-2 Adding HTML Content tutorial docs:
For integration of javafx-2 with swing I recommend you to read the Swing and Javafx-2 Interoperability article.
I hope it helped. Cheers