Re: add mouse listener
Sylvain Ferriol <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.java |
|---|---|
| Message-ID | <xM2dnQqcIuPJ9yrYnZ2dnUVZ_vfinZ2d__37451.7038967044$1169652497$gmane$org@mozilla.org> |
Michal Ceresna wrote: > On Tuesday 23 January 2007 4:13 pm, Sylvain Ferriol wrote: > hello, > >> i use the code showed in page "JavaXPCOM:Embedding Mozilla in a Java >> Application using JavaXPCOM" >> >> i want now to add a mouse listener to retrieve mouse event >> >> how can i do that using java xpcom ? > write a java object implementing the nsIDOMEventListener. > > Next find your window using the window watcher, then > take a document (nsIDOMDocument) of that window > and register the listener there. > i have no interface in nsIDOMDocument to register a listener > best regards, > Michal