John Davison said:
Has anyone attempted to embed IE in a Java Swing app? Is so, how hard
was it to do? Do you have any resources I could reference?
Internet Explorer is a COM object. Thus you will need some kind
of library which bridges Java and COM world. Microsoft's JVM (jview)
already supports this. To do similar thing with other JDK's you need
a third party library. IBM's alphaworks site had something called
Bridge2Java. There are other products like JIntegra.
You will need to wrap the Internet Explorer COM component (TLB)
with Java classes.
I think the simplest answer as to why you need this is because your
application may need better in-process control over a HTML rendering
component which actually works (which Internet Explorer does) and supports JavaScript, DOM and CSS etc. For the above reasons, have
you
thought of embedding Mozilla (Gecko component)? You may have to
resort to JNI, but good thing is that it will be cross platform.