See the BasicApplet.java file in \\DXMedia\Samples\Multimedia\DAnim\Java\Templates\BasicApplet.
Every Microsoft® DirectAnimation® applet has two main pieces: the DXMApplet class and the Model class. The following steps show how to construct and initialize a simple DirectAnimation applet.
import com.ms.dxmedia.*;
If you import multimedia files using URLs, you must also import the Java libraries with:
import java.net.*;
// // Class: MyApplet // class MyApplet extends DXMApplet { public void init() { super.init() ; // Now set the model. setModel(new MyModel()); } }
// // Class: MyModel // class MyModel extends Model { public void createModel(BvrsToRun blist){ // Set the image that actually gets displayed setImage(solidColorImage(blue)); } }
<title> My Applet </title> <hr> <applet code=MyApplet.class width=200 height=200> </applet> <hr>
Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.