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
