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.
1,094 Comments - Last post 3 minutes ago by HelpfulThought
164 Comments - Last post 11 minutes ago by Golwar
109 Comments - Last post 24 minutes ago by maximilyn
211 Comments - Last post 59 minutes ago by Koalala
407 Comments - Last post 1 hour ago by Vodeni
200 Comments - Last post 1 hour ago by Vodeni
16,598 Comments - Last post 1 hour ago by WaxWorm
188 Comments - Last post 1 minute ago by Vasharal
8,426 Comments - Last post 4 minutes ago by Vodeni
30 Comments - Last post 16 minutes ago by schmetti
32 Comments - Last post 22 minutes ago by FateOfOne
17,327 Comments - Last post 46 minutes ago by GeekDoesStuff
6,579 Comments - Last post 50 minutes ago by Oppenh4imer
103 Comments - Last post 51 minutes ago by erom96
Comment has been collapsed.