File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes Java 3d applet and HTML Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply Bookmark "Java 3d applet and HTML" Watch "Java 3d applet and HTML" New topic
Author

Java 3d applet and HTML

hel bel
Greenhorn

Joined: Mar 05, 2003
Posts: 3
Hi, I'm trying to pass an .obj file name into a java 3d applet but it just doesn't want to work for me! The code in the applet is as follows:
/**********************************************/
String ModelName;
...
...
...
public void init() {
ModelName = getParameter("MODELNAME");
if (filename == null) {
try {
URL path = getCodeBase();
filename = new URL(path.toString() + ModelName);
}
catch (MalformedURLException e) {
System.err.println(e);
System.exit(1);
}
}
/**********************************************/
The HTML is as follows:
/***********************************************/
<Object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 400 ALIGN = "center" >
<PARAM NAME = ModelName VALUE = "Model.obj" >
<EMBED type="application/x-java-applet;version=1.2.2" CODE = "Model.class" WIDTH = 400 HEIGHT = 400 ALIGN = "center" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"></embed><NOEMBED>
</NOEMBED>
</Object>
/***********************************************/
Any suggestions would be greatly appreciated - thanks
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12325
    
    1
The way I read the URL API, that should be:

Bill


Java Resources at www.wbrogden.com
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Java 3d applet and HTML
 
Similar Threads
classpath issue jdbc-applet
3 problems with my applet...
Java 3d applet and HTML
parameter to applet problems
Game Tutorials -->> Exploring Browser Support for Java 2