displaying swing/swt component inside of browser
Scott Cytacki <[email protected]> Mon, 06 Aug 2007 14:00:20 -0400
| Newsgroups | gmane.comp.mozilla.devel.java |
|---|---|
| Message-ID | <46B761B4.8040907__5716.47751280597$1186423235$gmane$org@concord.org> |
In theory at least, would it be possible to write an XPCOM component or extension with javascript which uses LiveConnect to display a Swing component within the browser? Or how about a SWT component? I'm guessing that something like that requires native code? I could do this with an applet, but I wanted to try to avoid using the Java plugin. I want to use this in an XPCOM browser embedded inside of a Java application. The Java plugin doesn't work on Windows in this case. Another problem with the Java plugin is that it uses its own classloader. I'd like some of the classes loaded by my Java application to be available to the Swing/SWT components embedded inside of the browser. If an XPCOM component or extension was used I believe I could find a way to share a classloader between the Java application, and the Swing/SWT components embedded inside the browser. Hmmm... perhaps even with an applet I could pass in a classloader to the applet with LiveConnect. But it seems like the whole thing would be a lot simpler if the Java plugin could be avoided. Scott