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.
15 Comments - Last post 6 minutes ago by Butterflysense
3,554 Comments - Last post 3 hours ago by Gamy7
54 Comments - Last post 3 hours ago by darkstar1999
11 Comments - Last post 3 hours ago by DeltaBladeX
12 Comments - Last post 10 hours ago by trex33361
306 Comments - Last post 12 hours ago by Kyshinn
480 Comments - Last post 12 hours ago by Tsukurai
0 Comments - Created 1 minute ago by mintberrychamp
611 Comments - Last post 1 minute ago by Jztr
22 Comments - Last post 11 minutes ago by whitewolf4000
13 Comments - Last post 13 minutes ago by fernandopa
75 Comments - Last post 17 minutes ago by FateOfOne
124 Comments - Last post 21 minutes ago by Calibr3
18 Comments - Last post 24 minutes ago by grimfandango8888
Comment has been collapsed.