First of all, I suggest use String.valueOf(int) instead of new Integer(int).toString , you create 2 instances and only nedd one instance of a string.
Yeah that's a little bit stupid, quick and very dirty :-)
next: use the methode e.setAttributeNS(null, "x", String.valueOf(x));
The updateManager will be automaticly instanciated. The problem is to find the right moment when this manager becomes ready to use.
I found another hint in the JavaDoc for JSVGComponent. Now I'm calling
svgCanvas.setDocumentState(JSVGComponent.ALWAYS_DYNAMIC);
otherwise if the loaded document doesn't contain any <script> elements the UpdateManager isn't available.
So it works as desired now.
thx, Reinhard
-- Reinhard Brandstaedter [EMAIL PROTECTED] GPG: 0x033B81DB - Student of Computer Science - J.K. University of Linz - - <ICQ: 73059068> <Mobile: +43 699 12419541> - - http://adelaide.dnsalias.net -
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
