• Post Reply Bookmark Topic Watch Topic
  • New Topic

JTextpane html rendering problem

 
shriny vas
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I need to render a html page with both underline tag and strike through tag to same text
Eg:
<strike><u>Hello Swing World</u></strike>

It is not supported in the JTextpane, but it is supported in all the browsers
If strike through is used seperately, its working and if the underline tag is used seperately its also working fine
How can this problem be solved
I need to use both Underline and StrikeThrough on a same Text.

Thanx
shriny
 
Chantal Ackermann
Ranch Hand
Posts: 508
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are many things supported by current browsers that do not work with JTextPane. For what I know there are only commercial solutions that provide a browser component for java that can catch up with the current standard (see NetClue for example).
if you do not depend on html it might be good to use the StyleContext and the AttributeSet, but I suppose you want to browse html pages, so that's not a real alternative.
chantal
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!