It seems really complicated for me. Is there someone who has already tried to do such a thing and who could give me its sources or a link toward an example of embedded browser with AWT/Swing ? At least, for the JNI part.
Thanks in advance. On Jul 13, 4:02 pm, "Oleg Sukhodolsky" <[EMAIL PROTECTED]> wrote: > you can use JAWT native interface to get HWND or Window id. But you should be > prepared for other problems you may have embedding XULRunner into > Swing/AWT - XULRunner uses gtk, but AWT/SWing don't. > > Oleg. > On 7/13/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > On Jul 13, 3:42 pm, moi <[EMAIL PROTECTED]> wrote: > > > Hi everybody, > > > > I'm trying to embed XULRunner into my Java application using > > > JavaXPCOM. The problem is that I can't call the initWindow(...) method > > > from the nsIBaseWindow interface. The first parameter is supposed to > > > be a long which represents the parent JFrame (well, actually, it's > > > what I understood, I'm not sure). > > > > How am I supposed to find this long ? I don't want to use SWT, I > > > prefer AWT or Swing. > > > > Please help me. Thanks in advance > > > There is no simple answer, but you can start looking from this thread: > > "http://forum.java.sun.com/thread.jspa?threadID=593759". It looks like > > the method to get a native handle of an AWT component differs from > > version to version. > > > _______________________________________________ > > dev-embedding mailing list > > [EMAIL PROTECTED] > >https://lists.mozilla.org/listinfo/dev-embedding _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
