I have been trying to figure this out why not the next picture showing on the same panel after click the button. I want to separate those classes not into one class and used rep
You can also use ImageIcon like this
image = new ImageIcon(imageList[1]);
and when each time button is clicked you can change image like this
label.setIcon(image);