• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Where Do I place the Folder for Java Applet Images?

 
Ranch Hand
Posts: 155
Netbeans IDE Oracle Java
  • Mark post as helpful
  • send pies
  • 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: 10777
71
Hibernate Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • 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: 6443
158
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Mark post as helpful
  • send pies
  • 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.
 
Put a gun against his head, pulled my trigger, now he's dead, that tiny ad sure bled
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic