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?

Paul D. Waite
  • 96,640
  • 56
  • 199
  • 270
DPD
  • 143
  • 2
  • 8
  • Why are you doing this? Maybe there is some easier way around the problem. – Mike Miller Nov 23 '10 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. – DPD Nov 23 '10 at 17:38

2 Answers2

1

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

morja
  • 8,297
  • 2
  • 39
  • 59
dteoh
  • 5,794
  • 3
  • 27
  • 35
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.

wkl
  • 77,184
  • 16
  • 165
  • 176