Image problems

I have a problem having images showing up on the web. it works fine when i use my applet on my computer. I uploaded all the files into one folder on the web and they don't want to show up....

Here is the code i used:

mypic3=(getCodeBase(),"me3.gif");

mypicture2=getImage(getCodeBase(),"me2.gif");

mypicture=getImage(getCodeBase(),"me.gif");

the images are on secondcube.com/"name".gif

does anyone know the how this problem can be fixed? Thx

[484 byte] By [secondcube.coma] at [2007-11-27 8:30:05]
# 1
Is the applet class/jar file in the same directory as the images?
RATiXa at 2007-7-12 20:20:36 > top of Java-index,Java Essentials,Java Programming...
# 2
the class is in the same diectory
secondcube.coma at 2007-7-12 20:20:36 > top of Java-index,Java Essentials,Java Programming...
# 3
isn't there another way of get in images like mypic3=getImage(" http://secondcube.com/me3.gif");or something like that
secondcube.coma at 2007-7-12 20:20:36 > top of Java-index,Java Essentials,Java Programming...
# 4

Hi,

Check the getImage(URL url) method of the java.awt.Toolkit class

Its a abstract static method. Try the following code

java.net.URL imageurl = new java.net.URL("http://secondcube.com/me3.gif");

Image img = Toolkit.getInstance().getImage(imageurl);

Regards,

Rakesh

rakesh_mscita at 2007-7-12 20:20:36 > top of Java-index,Java Essentials,Java Programming...
# 5
I get this error with that codeunreported exception java.net.MalformedURLException; must be caught or declared to be thrownya im not too bright in java yet...... so i think i have to declare something at the like i would with String s1;or anything like that
secondcube.coma at 2007-7-12 20:20:36 > top of Java-index,Java Essentials,Java Programming...
# 6
your site needs some css help. those scroll bars look really ugly
mkoryaka at 2007-7-12 20:20:36 > top of Java-index,Java Essentials,Java Programming...
# 7
i am not that advanced at any programming languages yet. thats why i use jcreator and dreamweaver
secondcube.coma at 2007-7-12 20:20:36 > top of Java-index,Java Essentials,Java Programming...
# 8
c-mon doesn't anyone know the answer to this question?
secondcube.coma at 2007-7-12 20:20:36 > top of Java-index,Java Essentials,Java Programming...
# 9
c-mon :S
secondcube.coma at 2007-7-12 20:20:36 > top of Java-index,Java Essentials,Java Programming...