Thomas,
Normally I would expect the applet to render the SVG file that it's passed.  However, all that appears is a big white blank spot.  If I take the same code, and turn it into an application, the same file renders perfectly.

I wrap the Batik code with a try/catch and no exceptions are thrown.

I'll try loading a simple SVG diagram with no JPEGs or _javascript_ and see if it renders properly.

If that doesn't work, I'll do a checkout and build the library.

Thanks for the suggestions.

Mark

[EMAIL PROTECTED] wrote:
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 _javascript_). 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]


Reply via email to