Search code examples
javahtml-rendering

How do you render HTML using Java?


I am working on building a web browser in Java. I have used a parser (JTIDY) to parse the HTML page into a DOM document. I know that rendering means the graphical representation of DOM document. But I don't know what the engineering process is for HTML rendering in Java. In Java there is a JEditorkit to parse and render, but it is not well-formed. So I want a better solution.

My question is: what is the actual process of HTML rendering and showing the complete web page in Java?


Solution

  • You can try either the Cobra renderer & parser or Flying Saucer project.