[prev in list] [next in list] [prev in thread] [next in thread] 

List:       batik-users
Subject:    Re: Dialog errors....
From:       Thomas DeWeese <Thomas.DeWeese () Kodak ! com>
Date:       2004-02-25 13:28:34
Message-ID: 403CA302.2060405 () Kodak ! com
[Download RAW message or body]

Stuart McMahon wrote:

> Is there a way to suppress the dialog errors boxes that appear?
> We allow users to import SVG fragments into our application, this can
> potentially lead to lots of SVG errors. I would like to capture these error
> messages and display them in our custom error dialogs and log the message to
> file.
> 
> Is this possible??

    All errors go through the various UserAgent classes.  You seem to
be talking about GUI applications so the relevant UserAgent class is:

org.apache.batik.swing.svg.SVGUserAgent

    You might want to look at the implementation in
org.apache.batik.apps.svgbrowser.JSVGViewerFrame
we also provide an adapter in swing.svg.

    The other major user agent class is the 'bridge' user agent, 
org.apache.batik.bridge.UserAgent, but most of those calls are
simply forwarded in a GUI context.




---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic