79348521

Date: 2025-01-11 17:08:54
Score: 2
Natty:
Report link

http://java-sl.com/custom_tag_html_kit.html is no longer available.

That previous link only provided a workaround, but in fact you can easily and properly extend support for Swing HTML tags. You can also get HTML5 support if you want, but it would be a lot of work and the performance would be far from that of a real web browser.

Javax Swing HTML parser is a DTD driven parser. The default DTD is called html32.dtd, meaning it supports most of HTML 32 recommendations.

If you want to support more Tags, you have to extend or rewrite this DTD. For example, below, MathML support was added to Swing HTML :

enter image description here

A bug report was submitted to make this easier : Add Reference or Informations About DTDBuilder in Documentation

Beware :

This responce was extracted from Which HTML tags are supported in Swing components ?.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: user10276995