paddy <email@example.com> wrote
on 01/20/2009 03:41:05 PM:
> Incidentally my DrawNode object just draws a rectangle on the SVG
> label, and pnlSVGMain is directly on the applet.
I suspect the problem is in your DrawNode
code. In particular I
suspect that you are using 'createElement' instead
with the SVG_NAMESPACE_URI for the namespace. It
exactly this sort of problem.
The above repaint is not useful and
could be harmful. I suggest
you remove it. The Canvas will repaint as needed.
svgGen = new SVGGraphics2D(m_objSVGDoc);
os = new FileOutputStream("c:/systemdoc.svg");
> Writer w =
new OutputStreamWriter(os, "iso-8859-1");
You might find batik.dom.util.DOMUtilities.writeDocument
bit more direct for serializing a DOM.