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.
3,385 Comments - Last post 2 hours ago by MeguminShiro
13 Comments - Last post 2 hours ago by sesito71
596 Comments - Last post 2 hours ago by EobardThawne
47,480 Comments - Last post 4 hours ago by Ganslit
6 Comments - Last post 8 hours ago by Tronics
8 Comments - Last post 8 hours ago by DeliberateTaco
22 Comments - Last post 10 hours ago by eeev
7 Comments - Last post 7 minutes ago by Mayanaise
2 Comments - Last post 13 minutes ago by meneldur
86 Comments - Last post 20 minutes ago by mourinhos86
730 Comments - Last post 32 minutes ago by CBlade
118 Comments - Last post 58 minutes ago by derton2000
433 Comments - Last post 1 hour ago by wigglenose
173 Comments - Last post 1 hour ago by someonequeer
Comment has been collapsed.