Hi Mark, Mark A Fortner <[EMAIL PROTECTED]> wrote on 06/26/2006 06:27:03 PM:
> I wrote a small applet to render an SVG file. However, it can't seem to > render the file. When the applet appears it's blank. > > I've debugged through it and there doesn't seem to be any problem. What does this mean? Obviously there is a problem otherwise you wouldn't be posting here ;) Do you wrap all Batik class with try/catch blocks so you can check if Batik or one of it's libraries is throwing an exception? I suspect some form of Security error is at fault here. > canvas.setDocumentState(JSVGCanvas.ALWAYS_DYNAMIC); Does the document you are trying to display use ECMAScript (AKA Java script). Rhino has some problems in an Applet context as it's default behavior is to generate bytecode from the JavaScript. I think all of those issues are resolved in the SVN version of Batik. In either case I would try a simple static SVG first. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
