hi

i try to display a svg image on a panel

imgPane.setImgFile(new 
File("/home/test/workspace/Jono/picture/education/crayon.svg"));
imgPane.displayImg();


public void setImgFile(File imgFile) {
  this.imgFile = imgFile;
}

public void displayImg(){
  svgCanvas.setURI(getImgFile().toString());


i get this error



java.io.IOException: Unable to make sense of URL for connection
        at org.apache.batik.util.ParsedURLData.openStreamInternal(Unknown 
Source)
        at org.apache.batik.util.ParsedURLData.openStream(Unknown Source)
        at org.apache.batik.util.ParsedURL.openStream(Unknown Source)
        at 
org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(Unknown 
Source)
        at 
org.apache.batik.dom.svg.SAXSVGDocumentFactory.createSVGDocument(Unknown 
Source)
        at org.apache.batik.bridge.DocumentLoader.loadDocument(Unknown Source)
        at org.apache.batik.swing.svg.SVGDocumentLoader.run(Unknown Source)


any idea?


thanks

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to