0

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 ?

mKorbel
  • 109,525
  • 20
  • 134
  • 319
Aman Grover
  • 1,621
  • 1
  • 21
  • 41
  • 1
    With saying how HTML support in `JEditorPane` fails to meet your requirements, this question is not constructive. – trashgod Apr 06 '13 at 09:44
  • 2
    Check 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 Answers1

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:

http://djproject.sourceforge.net/ns/

trashgod
  • 203,806
  • 29
  • 246
  • 1,045
Alexis Dufrenoy
  • 11,784
  • 12
  • 82
  • 124