slide show in java

m tryin to move images in a panel with specified delay

here i am saving previous image in panel in img2 to load it again later and takin path from other class, and the code is running, but while running its not repainting images after delay and getting hanged, plzz help me out

Image img2=img1;

GetFileList gfl=new GetFileList();

String ss[]=gfl.getlist();

String dirname = "training/data1/";

try

{

for(int i=0;i<ss.length;i++)

{

Image img11=DemoImages.getImage(dirname+ss,this);

image1.setImage(img11);.

image1.sethelp(dirname+ss);

Thread.sleep(5000);

image1.repaint();

}>

[691 byte] By [ridhava] at [2007-11-27 1:30:04]
# 1
Quite a weird post this is... no problem stated, and i don't think it has much to do with XML, possibly a mistake in posting?
ethical_anarhista at 2007-7-12 0:30:41 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2

Mind that the symbol "[i]" is a reserved word for applying italic formatting and will be automatically removed from texts posted in this forum. Did it happen to your code sample too? If not, you have to replace "ss" with "ss[i]" inside the loop, then test your code to see if it will work.

...

for(int i=0;i<ss.length;i++)

{

Image img11=DemoImages.getImage(dirname+ss[i],this);

image1.setImage(img11);.

image1.sethelp(dirname+ss[i]);

Thread.sleep(5000);

image1.repaint();

}

prgguya at 2007-7-12 0:30:41 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...