I tried another solution but also failed
please if any one can help me
Nesrin aboud
Ranch Hand
Joined: Feb 08, 2010
Posts: 38
posted
0
in the last one there is no exception thrown but the images do not appear in the list
Rob Camick
Ranch Hand
Joined: Jun 13, 2009
Posts: 1652
posted
0
I tried another solution but also failed
Why? I already gave you the solution.
Nesrin aboud
Ranch Hand
Joined: Feb 08, 2010
Posts: 38
posted
0
can you give a sample code,
I tried your solution, but I have no experience with applets and failed to do it
so if you can write the sequence that is should follow to use the ListModel and ImagIcon
Michael Dunn
Rancher
Joined: Jun 09, 2003
Posts: 4041
posted
0
> I made an applet
> images[i] = ImageIO.read(new File(path));
won't work in applets
google
getCodeBase()
Nesrin aboud
Ranch Hand
Joined: Feb 08, 2010
Posts: 38
posted
0
why Michael
and where to add the getCodeBase()
Rob Camick
Ranch Hand
Joined: Jun 13, 2009
Posts: 1652
posted
0
but I have no experience with applets
Well, thats an important piece of information to leave out (that this is for an applet).
Read the section from the Swing tutorial on How to Make Applets for an example of using images in an applet.