Try with for
for(int i = 0;i < 40; i++)
{
panel.add(new JLabel(new ImageIcon("C:\images\emptyWhite.png")));
panel.add(new JLabel(new ImageIcon("C:\images\emptyBlack.png")));
}
I'm not sure, I didn't code much lately in Java, atleast not normal GUI's :P..
Comment has been collapsed.
12 Comments - Last post 4 minutes ago by k3wl
1,889 Comments - Last post 13 minutes ago by asha
5,705 Comments - Last post 34 minutes ago by thekenya
1,494 Comments - Last post 1 hour ago by onarum
354 Comments - Last post 1 hour ago by Reidor
11 Comments - Last post 2 hours ago by Carenard
18,684 Comments - Last post 2 hours ago by abelase
7,748 Comments - Last post 2 minutes ago by cidel87
96 Comments - Last post 29 minutes ago by QSO
481 Comments - Last post 34 minutes ago by Sebbern
192 Comments - Last post 37 minutes ago by Raiden98
33,022 Comments - Last post 50 minutes ago by schmetti
146 Comments - Last post 1 hour ago by RaitorHaitor
183 Comments - Last post 1 hour ago by Greenule
Comment has been collapsed.