> I am creating a web browser in Java. In this browser I am using
> JEditorPane for Browser Window. I am using "setPage(String url)" method
[quoted text clipped - 4 lines]
> 2. It is not displaying the Applet.
> 3. The images are also not displayed.
> Note that JEditorPane is not considered robust enough
> to use as a general HTML parser/renderer for HTML documents
> on the internet, as most of those are invalid, and J.E.P.
> does not render invalid HTML (sometimes throwing some
> exciting and long stacktraces, wile not rendering the
> document, as a bonus!).
Yup, the Swing HTML implementation only attempts to support a subset of
ye very olde HTML 3.2, and it does that badly.
On the bright side, there is a project to integrate modern browsers as
components.
https://jdic.dev.java.net/
IIRC, it is intended that Java SE 6 will include a version of this when
it is released next year.
Tom Hawtin

Signature
Unemployed English Java programmer
http://jroller.com/page/tackline/
Andrew Thompson - 15 Nov 2005 11:02 GMT
..
>> Note that JEditorPane is not...
..
> On the bright side, there is a project to integrate modern browsers as
> components.
>
> https://jdic.dev.java.net/
I *knew*, in all that rambling, I would forget to
get to the point! Lucky you happened by.
> IIRC, it is intended that Java SE 6 will include a version of this when
> it is released next year.
Cool! I'm looking forward to using SE6 more and more.
ashish.hearts@gmail.com - 15 Nov 2005 11:58 GMT
> ..
> >> Note that JEditorPane is not...
[quoted text clipped - 11 lines]
>
> Cool! I'm looking forward to using SE6 more and more.
Thanks a lot for this suggestion and link. It is of little help to me.
Thank you once again.
Andrew Thompson - 15 Nov 2005 12:15 GMT
...
>>>On the bright side, there is a project to integrate modern browsers as
>>>components.
>>>
>>>https://jdic.dev.java.net/
..
>>>IIRC, it is intended that Java SE 6 will include a version of this when
>>>it is released next year.
..
> Thanks a lot for this suggestion and link. It is of little help to me.
'You poor thing' :-(
(shrugs) Short of you being a lot more explicit about
things such as..
- the requirements of your application
- the general nature of the HTML you are attempting
to render (E.G. internet or the company intranet)
- The minimum Java expected of the client
- The reasons an embedded browser would not fulfill
your user's requirements.
..that is about all that can be added.
Thomas Hawtin - 15 Nov 2005 13:29 GMT
>> IIRC, it is intended that Java SE 6 will include a version of this
>> when it is released next year.
>
> Cool! I'm looking forward to using SE6 more and more.
Oops, that appears to be (no longer) the case. Deferred to Dolphin (Java
SE 7).
Tom Hawtin

Signature
Unemployed English Java programmer
http://jroller.com/page/tackline/
zero - 16 Nov 2005 00:22 GMT
Thomas Hawtin <usenet@tackline.plus.com> wrote in news:4379a817$0$1468
$ed2619ec@ptn-nntp-reader01.plus.net:
>> Note that JEditorPane is not considered robust enough
>> to use as a general HTML parser/renderer for HTML documents
[quoted text clipped - 15 lines]
>
> Tom Hawtin
I thought it was already possible to use existing browers inside Java
applications? About a year ago I went looking for a substitute for
JEditorPane to render HTML and I seem to remember that was one of the
options.
Steve Sobol - 18 Nov 2005 06:05 GMT
> On the bright side, there is a project to integrate modern browsers as
> components.
>
> https://jdic.dev.java.net/
http://jrex.mozdev.org
quite an impressive effort... uses JNI to wrap Java around the Gecko Runtime
Environment, upon which Mozilla and a bunch of other browsers are based.
Works with AWT and Swing, and I personally got it working with SWT.

Signature
Steve Sobol, Professional Geek 888-480-4638 PGP: 0xE3AE35ED
Company website: http://JustThe.net/
Personal blog, resume, portfolio: http://SteveSobol.com/
E: sjsobol@JustThe.net Snail: 22674 Motnocab Road, Apple Valley, CA 92307