I need your help in the following problem: I have an applet in which i am displaying my images after selecting them from a dialog box. It is displaying all the images in the applet (i am also providing the code below). Now i want to enhance its functionality. I want that if i select 2 images from the dialog box it should display one of them and then if i click on the next button(which i created on the same frame) it should display the next image. For this i am storing all my selected images in a buffered image and then retrieving one by one on clicking the next button. But in my case the image is not changing. It is remaining as the first image. The following is the code i have :
If anybody has any idea please help me. Thanks in advance.