Embed Internet Explorer (IE) in a JFrame?

J

John Davison

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?

Thanks,

John
 
A

Andrew Thompson

John Davison said:
Has anyone attempted to embed IE in a Java Swing app? Is so, how hard
was it to do?

I imagine it would be impossible, but do not know for sure.

Why would you want to do such a thing?

JEditorPanes can display short, simple html,
and BrowserLauncher can be used to 'open the
default browser' with an URL specified by
the programmer.

Do neither of these suit your purpose?
 
T

Tom Cole

Plus there are "free for non-commercial use" applications like the NetClue
browser that work great.
 
S

Sandip Chitale

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top