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.
posted 8 years ago
Look at these two lines from the actionPerformed() method. The variable image is also declared at the class level! So where does the second statement below put its value? local or class
Also your variable names could be changed for easier reading/understanding. EG use openBtn vs button or nextBtn vs button1 [ June 19, 2008: Message edited by: Norm Radder ]
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads