Re: add mouse listener

Michal Ceresna <[email protected]>
Newsgroups gmane.comp.mozilla.devel.java
Message-ID <200701211352.50766.michal.ceresna__10130.125078331$1169568855$gmane$org@gmail.com>
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.

best regards,
Michal
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.