Hi Cameron & John,

Many thanks for your help. I'm not a java programmer but I'll see if I can write the required applet class.

Thanks again. You're help is very much appreciated.


----- Original Message ----- From: "Cameron McCormack" <[email protected]>
To: <[email protected]>
Sent: Monday, December 15, 2008 2:37 PM
Subject: Re: Running Squiggle as an applet.


Hi Noel.

Noel Whiting:
changed code as suggested to :

<Html><head></head>
<body>
<applet code="org.apache.batik.apps.svgbrowser.Main" height="100%" width="100%"

archive="batik-squiggle.jar,batik-all.jar,xerces_2_5_0.jar,js.jar,xml-apis.jar,xml-apis-ext.jar,xalan-2.6.0.jar">
 <param name="svgFile" value="s0000549.svg">
</applet>
</body></html>

but still get 'load: class Main.class not found'.

The Squiggle main class, org.apache.batik.apps.svgbrowser.Main, is not a
java.applet.Applet, and only classes that inherit from java.applet.Applet
can be referenced in the @code attribute and run as applets.  You’ll
need to write your own applet class that runs the Squiggle application
or creates a JSVGCanvas in the applet, as appropriate for whatever
you’re task is.

The applet demo on the website has an example:

 http://xmlgraphics.apache.org/batik/demo.html

The applet code is at:

 http://xmlgraphics.apache.org/batik/demo/AppletDemo.java

Cameron

--
Cameron McCormack ≝ http://mcc.id.au/

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]













































































































































































---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to