You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by Thierry Kormann <Th...@sophia.inria.fr> on 2000/11/13 17:24:34 UTC

JSVGApplet

Hi,

I made a first version of an applet : the apps.applet.JSVGApplet class.
As we need to find a place where to put the demo, if you want to test, you need 
to :

a. create a batik.jar file that contains all classes, resources, js.jar and 
crimson.jar

b. put the batik.jar in the xml-batik directory

c. put the specified plugin.html file in xml-batik

d. launch the appletviewer with plugin.html

PS: I have not tried to use the applet in netscape or IE yet.

PPS: you can change the document with the 'svg' parameter.

---

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
  <head>
    <title>Batik</title>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  </head>

  <body bgcolor="white">
    <h1>Batik & Java-plugin</h1>

<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
        width="600" 
        height="400"  
        codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#
Version=1,3,0,0">
      <PARAM NAME="code" VALUE="org.apache.batik.apps.applet.JSVGApplet" >
      <PARAM NAME="archive" VALUE="batik.jar" >
      <PARAM NAME="type" VALUE="application/x-java-applet;version=1.2.2">
      <PARAM NAME="svg" VALUE="file:/u/quokka/0/koala/tkormann/xml-batik/samples
/tests/feTurbulence.svg">
      <COMMENT>
	<EMBED type="application/x-java-applet;version=1.2.2" 
	  width="600" 
	  height="400"
	  archive="batik.jar"
	  code="org.apache.batik.apps.applet.JSVGApplet" 
	  svg="file:/u/quokka/0/koala/tkormann/xml-batik/samples/tests/feTurbulence.svg
">
	  
	  <NOEMBED>
	    No JDK 1.2 support found!
	  </NOEMBED>
	</EMBED>
      </COMMENT>
    </OBJECT>

  </body>
</html>


---

Thierry.

-- 
Thierry Kormann
email: Thierry.Kormann@sophia.inria.fr  http://www.inria.fr/koala/tkormann/
Koala/Dyade/Bull @ INRIA - Sophia Antipolis