This is what i do, see the first line of the code snippet: svgCanvas.setDocumentState(JSVGCanvas.ALWAYS_DYNAMIC);
Can I register a swing mouse listener with the canvas and from the event source drill down until the dom node? On Tuesday 09 November 2004 15:01, Thomas DeWeese wrote: > Alessandro Di Bella wrote: > > I did what you suggested but I must have made a mistake because > > it doesn't seem to work. > > [...] > > > Debugging through the app, I can see that the listeners are set but > > nothing happens when I click on the element. > > > > I reckon that the events are not fired. > > Ahh, you probably need to tell the Canvas that you want your > document to be dynamic, see: > batik.swing.svg.JSVGComponent.setDocumentState > > BTW you should really use Element.getAttributeNS instead of > looping over all the attributes. This will be _much_ faster! > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]