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