Any class to do this?

Interpretting HTML in java to display web pages

Posted 15 December 2008 - 03:20 PM

Hello Everyone,

I'm wondering if there is an easy way or a not so easy way to interpret HTML to form actual web pages in java? I currently have the HTML input from the web server but now I need to interpret it to create readable web pages... Is there any class or method to do this in java?

Re: Interpretting HTML in java to display web pages

Posted 15 December 2008 - 08:44 PM

Ok right on ya that's what I need... however i'm not sure how to implement it... what part of the code is actually interpretting the html... and is it only JTextPane that can interpret html or can JTextArea do it too? Here is the code william led me to...

Re: Interpretting HTML in java to display web pages

Posted 15 December 2008 - 09:08 PM

Ok I'm a little confused as to how this works. Is it just setPage that I will need? I'm thinking i'm going to need some other things that I can't seem to figure out. Never did like the sun API documentation for explanations. Here is my code... not sure what i'm doing but it's now throwing a run time error in regards to the setPage call. Also nothing is happening when I press the enter button and i'm not sure why...