Stephane Hillion wrote:
[...]
> A way to have some feedback from the JSVGCanvas is to set your own
> SVGUserAgent. For example:
> 
>     svgCanvas = new JSVGCanvas(new SVGUserAgent() {
>         public void displayError(String message) {
>             System.out.println(message);
>         }
[...]
> 
> Every error will be displayed using the standard output.

Errors should go to stderr, i.e. you should use System.err instead of
System.out. This might get important if someone wants to embed a program
in a script -- it can be quite nasty if you are not able to distinguish
between ordinary messages and real errors, e.g. you can't send mail like
"Program X produced error messages" with only the errors, not all the
other output.

Probably you don't want to build scripts around GUI programs but you
never know -- e.g. I usually pipe all the Mozilla output into different
files. The System.err output should be visible on each system, so you
shouldn't get any problems with this approach but you make the Unix
people happy ;-)

HTH,
   PeterB

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

Reply via email to