Fabrizio Nunnari wrote:
> Yes, try:
>
> String filename = "filename" ;
> File f = new File(filename) ;
> URL url = f.toURL() ;
>
> hope this avoid security problems
Hmm, Im not sure about that..
But If you look at the Morph Demo applet in the JDK directory, they do this
for obj files, so you might want to try it this way instead...
private java.net.URL[] objFiles = null;
objFiles = new java.net.URL[3];
// the path to the image for an applet
String path = getCodeBase().toString();
try {
objFiles[0] = new java.net.URL(path + "hand1.obj");
objFiles[1] = new java.net.URL(path + "hand2.obj");
objFiles[2] = new java.net.URL(path + "hand3.obj");
}
catch (java.net.MalformedURLException ex) {
System.out.println(ex.getMessage());
System.exit(1);
}
Leyland Needham
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".