• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Where Do I place the Folder for Java Applet Images?

 
Ranch Hand
Posts: 155
Netbeans IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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:

 
Bartender
Posts: 10780
71
Hibernate Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Saloon Keeper
Posts: 7582
176
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
This one time, at bandcamp, I had relations with a tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic