Try adding your EventListener to the Document Element instead.

EventTarget target =
(EventTarget)svgCanvas.getSVGDocument().getDocumentElement();
target.addEventListener("click", new mouseClicked(), false);

On 11/19/06, Peppe <[EMAIL PROTECTED]> wrote:

                                        public void run() {
                                                        SVGElement svgRoot
= svgCanvas.getSVGDocument().getRootElement();
                                                        EventTarget target
= (EventTarget)svgRoot;

target.addEventListener("click", new mouseClicked(), false);
                                        }


--
Visit http://www.darkisle.com for photos of castles, cairns and other
historic sites in the British Isles.

Reply via email to