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.
222 Comments - Last post 25 minutes ago by lokonopa
519 Comments - Last post 35 minutes ago by OddDo
46 Comments - Last post 2 hours ago by m0r1arty
12 Comments - Last post 2 hours ago by Gamy7
239 Comments - Last post 13 hours ago by y2
43 Comments - Last post 14 hours ago by malkavian1331
16 Comments - Last post 21 hours ago by Tenn
27 Comments - Last post 1 minute ago by SmartBadger
134 Comments - Last post 4 minutes ago by samwise84
12 Comments - Last post 7 minutes ago by Aldcoran
2,967 Comments - Last post 7 minutes ago by Bum8ara5h
318 Comments - Last post 11 minutes ago by Doshmaku
8,854 Comments - Last post 27 minutes ago by ayuinaba
5 Comments - Last post 39 minutes ago by Hawkingmeister
Comment has been collapsed.