Re: JavaXPCOM and Handle

kgogineni <[email protected]>
Newsgroups gmane.comp.mozilla.devel.java
Message-ID <8175880.post__10317.7750287161$1167993530$gmane$org@talk.nabble.com>
Can anyone please suggest me How to embed firefox in java application for
WindowsXP using JAVAXPCOM with awt? I have executed the code in
http://nithril.free.fr/Xul as suggested in the forum. I'm getting an empty
window and the output is as follows...

paint null
paint null
getInterface{ba434c60-9d52-11d3-afb0-00a024ffc08c}{ba434c60-9d52-11d3-afb0-00a024ffc08c}
getInterface{ba434c60-9d52-11d3-afb0-00a024ffc08c}{ba434c60-9d52-11d3-afb0-00a024ffc08c}
getInterface{ba434c60-9d52-11d3-afb0-00a024ffc08c}{ba434c60-9d52-11d3-afb0-00a024ffc08c}
getInterface{ba434c60-9d52-11d3-afb0-00a024ffc08c}{ba434c60-9d52-11d3-afb0-00a024ffc08c}
getUrl
onLocationChange blank about:blank
onStartURIOpenhttp://www.google.com/
onStateChange 983041 0
onStatusChange
onStatusChange
onStatusChange
onStatusChange

Nithril : Can you plz suggest any thing in this regard?

Thanks a bunch in advance,
Kalpana.






Nithril wrote:
> 
> 
> I've solved my freeze issue by calling the function AppShell.run() that 
> process event.
> 
> I don't know if it is the correct solution, maybe It should be more 
> clean to dispatch AWT event to browser through 
> nsIAppShell.ListenToEventQueue
> 
> 
> You can find the codes into http://nithril.free.fr/Xul, sorry for the 
> quality and the insane comments ;-)
> 
> Nicolas
> 
> 
> 
> Javier Pedemonte a écrit :
>> Nithril wrote:
>>> I'm currently trying to embed xulrunner into a Java AWT application 
>>> through JavaXPCOM by using the source found on 
>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=79213.
>> 
>> Awesome!  I'm glad someone started taking a look at this, because I just 
>> haven't had the time, unfortunately.
>> 
>> I've been worried for a while that the way JavaXPCOM is currently 
>> architected may only work for SWT, since SWT provides access to the 
>> underlying platform window handle.
>> 
>>> My question is which handle must I pass to nsIBaseWindow.initWindow 
>>> function ?
>>>
>>> I have trying to put a HWND Canvas handle (I have extracting the HWND 
>>> handle by using some JNI tricks) but without success, my windows 
>>> currently freezing.
>> 
>> The initWindow method takes a platform window handle;  so for Windows, 
>> its an HWND.  Not sure why it would be freezing, though.  Are you 
>> comfortably with debugging Mozilla?  If not, you could send me the code 
>> you currently have, and I could debug it to see what's going on.
>> 
>> In the future, I was thinking about providing some utility method that 
>> would work with AWT and Swing, so embedders using those GUI APIs 
>> wouldn't have to worry about getting the underlying window handle.  I'd 
>> be very interested to see your solution for AWT, as I am not very 
>> knowledgeable about AWT (or Swing for that matter).
>> 
>> 
>> javier
> _______________________________________________
> dev-tech-java mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-tech-java
> 
> 

-- 
View this message in context: http://www.nabble.com/JavaXPCOM-and-Handle-tf1318510.html#a8175880
Sent from the Mozilla - OJI mailing list archive at Nabble.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.