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 ?
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: