1

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?

2
  • Why are you doing this? Maybe there is some easier way around the problem. Commented Nov 23, 2010 at 16:28
  • I am developing a web browser in java.At-first I was using cobra api to parse and render it.It can compile the java-script contents.But now I am having a problem to add cookie to browser.Cobra has no cookie facility.I could not access the URL-Connection from outside of the api for sending cookie to server.So I thought to render it by myself.But many people said it is not a good idea because it is a huge task.So I am confused.If you have any suggestion please tell me. Commented Nov 23, 2010 at 17:38

2 Answers 2

1

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

Sign up to request clarification or add additional context in comments.

2 Comments

0

There is the pretty much vaporware JWebPane that is part of JavaFX, but who knows when and if that will ever come out.

You can use MozSwing which integrates the Mozilla rendering framework with the Java Swing toolkit.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.