Using JavaXPCOM and XulRunner under linux
Sergio <[email protected]> Tue, 3 Feb 2009 03:22:12 -0800 (PST)
| Newsgroups | gmane.comp.mozilla.devel.java |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <9cc275d3-ac41-4609-85df-0c5aa2b5cc07@d36g2000prf.googlegroups.com> |
Hi everybody, I've seen somepost about embedding xulrunner with JavaXPCOM and I wonder if you can help me. I've managed to create an embedded browser in swing using javaxpcom and xulrunner-1.8.0.4 on windows. I use a canvas to embed the browser, getting the handle of the canvas natively from the SO. My code is very similar to JWeb one posted here http://groups.google.com/group/mozilla.dev.tech.java/browse_thread/thread/898ba6751d0c57f7/6e7e6402f67eb4ec?#. The only exception is the way of getting the canvas handle. Anyway, my code is working on windows but I need to make this work on linux. I've seen on a previous post(http://osdir.com/ml/ mozilla.devel.oji/2007-07/msg00025.html) that a GTK window is needed to make it work on linux. Do you have an example of this? , I need to use JAVA1.4 due to some software restrictions. I have been capable of creating a gtk window using the canvas handle, then getting the peer of this gtk window and do a basewindow.init with this peer. Everything seems correct, except nothing is shown on my canvas. I have use some code from MozSwing to create the gtk windows, but mozSwing only works under Java 6.0, so I'am afraid it can`t be done with Java 1.4. I will really appreciate any kind of help. Thaks in advance, Sergio Ballestero