I have searched it on the net , but only solution I found out is JEditorPane , with the suggestion to not to use it , as it is very weak. Is there not any other alternative, other than JEditorPane ?
Asked
Active
Viewed 251 times
0
-
1With saying how HTML support in `JEditorPane` fails to meet your requirements, this question is not constructive. – trashgod Apr 06 '13 at 09:44
-
2Check out JavaFX: http://docs.oracle.com/javafx/2/webview/jfxpub-webview.htm – Guillaume Polet Apr 06 '13 at 09:47
-
@trashgod: the problems with JEditorPAne are really well known, beginning with it not using style sheets. – Alexis Dufrenoy Apr 06 '13 at 10:02
-
1@Traroth While I agree with you, I think Trashgod's point is that not explaining what the missing requirements are makes it impossible to answer the question with out significant guess work – MadProgrammer Apr 06 '13 at 10:15
-
@Traroth: I can't disagree, but the question says _nothing_ about what would constitute a better alternative for some particular use case. Edit: more [here](http://stackoverflow.com/a/12680496/230513). – trashgod Apr 06 '13 at 10:16
1 Answers
2
Support for HTML in JEditorPane
is limited. I would say use JWebPane
, but somehow the project seems to be at a stop. Try Flying Saucer if you need portability:
http://code.google.com/p/flying-saucer/
or if native code is ok, you can try the DJ Project:

trashgod
- 203,806
- 29
- 246
- 1,045

Alexis Dufrenoy
- 11,784
- 12
- 82
- 124
-
1
-
Needless to say, nowadays using JavaFX's javafx.scene.web.WebView (which is actually the achieved version of JWebPane) would be the best solution. Flying Saucer and DJ Project seem both to be obsolete. – Alexis Dufrenoy Sep 06 '16 at 08:31
-