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.
286 Comments - Last post 58 minutes ago by hbouma
173 Comments - Last post 1 hour ago by hbouma
642 Comments - Last post 1 hour ago by Oppenh4imer
58 Comments - Last post 1 hour ago by RobbyRatpoison
864 Comments - Last post 2 hours ago by Ashtart
255 Comments - Last post 4 hours ago by XfinityX
30 Comments - Last post 12 hours ago by TinTG
23 Comments - Last post 6 minutes ago by Oppenh4imer
505 Comments - Last post 7 minutes ago by Arouet
52 Comments - Last post 13 minutes ago by Greativity
433 Comments - Last post 13 minutes ago by OneManArmyStar
8,211 Comments - Last post 14 minutes ago by ClapperMonkey
14 Comments - Last post 25 minutes ago by GeekDoesStuff
79 Comments - Last post 1 hour ago by axolotlprime
Comment has been collapsed.