Forums Register Login

Where Do I place the Folder for Java Applet Images?

+Pie Number of slices to send: Send
Hi Guys I have a Java Applet which is supposed to show images. The Applet is Appearing but it is not loading the Images which am sure it is a Problem of where the Image folder is located. Can Someone Please Advise Me on where to place the Folder for the Applet to Load the Images?
This is the code am using to load the images:

+Pie Number of slices to send: Send
 

Stanley Mungai wrote:Hi Guys I have a Java Applet which is supposed to show images. The Applet is Appearing but it is not loading the Images which am sure it is a Problem of where the Image folder is located. Can Someone Please Advise Me on where to place the Folder for the Applet to Load the Images?


It seems to me that that will be dependent on what getCodeBase() returns. The thing that worries me a bit is the ".JPG". I'm no expert on these things, but I think I'd put ".jpg" as my first crack (I'm pretty sure that ".jpeg" is also a valid suffix for JPEG files).

Winston
+Pie Number of slices to send: Send
I'd check the access logs of the server to determine which URLs the applet is trying to access, and what the response code is (200, 404, etc.) That should point to the problem real quick.
What are you doing in my house? Get 'em tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1387 times.
Similar Threads
Java 6: Need to have an array of images of which I can randomly select
Unable to call applet methods from javascript
Applet in JSP
constructor and init.
Using MediaTracker to track Images on multiple Panels - help
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 03:03:53.