Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Where Do I place the Folder for Java Applet Images?

 
Stanley Mungai
Ranch Hand
Posts: 155
Java Netbeans IDE Oracle
  • 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:

 
Winston Gutkowski
Bartender
Pie
Posts: 10527
64
Eclipse IDE Hibernate 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
 
Tim Moores
Bartender
Posts: 2946
46
  • 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.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic