// Get a new SVG drawing context.
DOMImplementation domImpl = SVGDOMImplementation.getDOMImplementation();
SVGDocument document = (SVGDocument) domImpl.createDocument(null, "svg", null);
SVGGraphics2D svg = new SVGGraphics2D(document);
// Render the drawing and store it in the session. OurRenderer.render(svg);
// Load the SVG viewer and view the SVG. JSVGComponent view = new JSVGComponent(); view.setSVGDocument(document); gui.setView(view);
When running:
java.lang.NullPointerException
at org.apache.batik.bridge.BaseScriptingEnvironment.isDynamicDocument(Unknown Source)
at org.apache.batik.bridge.UpdateManager.isDynamicDocument(Unknown Source)
at org.apache.batik.swing.svg.JSVGComponent.setSVGDocument(Unknown Source)
at [my code above]
Anybody have any ideas? I've tried moving setSVGDocument to after the view is displayed,
but this makes no difference.
Daniel
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
