I made a image lists like this in java:
static String[] imageList1 = { "images/bgs/bg.png", "images/bgs/image1.png",
"images/bgs/image2.png", "images/bgs/image3.png" };
I use the image in the image list as a background like this:
JLabel background = new JLabel(new ImageIcon(imageList1[0]));
The problem is when I run the program the whole frame was blank(supposedly the frame consists from only one picture image
and one button
) but if I minimize and then maximize or adjust the width or height of the frame, it suddenly shows the image
and the button
.