You just have to pass the file as an URL:

URL textureURL = new URL("file:./background.jpg");

TextureLoader loader
          =new TextureLoader(textureURL, this);

Dani

-----------------------

Like I said, I don't think you reference a file by name like that.  The
browser supports a higher level of security than an application.  Perhaps
the applet viewer does not enforce permissions the same way as a browser.
But think of it this way, "background.jpg" is stored where?  How does the
applet know where to look?  Have you tried using a url to reference it?  I
could be completely wrong here, like I said I am not an Applet programmer.

Dave Yazel
----- Original Message -----
From: Z H <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 04, 2001 11:17 PM
Subject: [JAVA3D] Jesus! can run it in sun's applet viewer but can't run in
IE5.5


hi!

thanks to David.

I am really confused. the applet I did can be run in
sun's applet viewer, but can't be run in IE5.5

I do convert the html file using sun's htmlconverter.
but the IE5.5 can't display the applet if I insert a
background image as following:

TextureLoader loader
          =new TextureLoader("background.jpg", this);

ImageComponent2D image=loader.getImage();

even though I change the watcher "this" to null:

TextureLoader loader
          =new TextureLoader("background.jpg", null);

ImageComponent2D image=loader.getImage();

IE still can't display it(but application can work).

what's the problem on earth?


 Richard,



__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

===========================================================================
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".

===========================================================================
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".





--

Diese E-Mail enth�lt vertrauliche und/oder rechtlich gesch�tzte Informationen. Wenn 
Sie nicht der richtige Adressat sind oder diese E-Mail irrt�mlich erhalten haben, 
informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das 
unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorised copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.
==========================================================================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".

Reply via email to