public String[] imagesArray = {Images.firstImage, Images.secondImage};
String imagesPath = \"/testproject/images/\";
for(int i = 0; i
The problem is most likely the asynchronous loading nature of using an ImageIcon to load the original images.
If that is the problem:
orignalImageIcon to the button and see if they all appear.ImageIO.read(URL) - a method that will block until the image is completely loaded.