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.
138 Comments - Last post 24 minutes ago by Delisper
977 Comments - Last post 46 minutes ago by BlazeHaze
31 Comments - Last post 1 hour ago by shiinamuser
17,017 Comments - Last post 3 hours ago by blueflame32
612 Comments - Last post 4 hours ago by shearkvis
392 Comments - Last post 5 hours ago by kiseli
542 Comments - Last post 5 hours ago by kiseli
62 Comments - Last post 14 minutes ago by Xerxas
167 Comments - Last post 14 minutes ago by stlpaul
35 Comments - Last post 25 minutes ago by PsychoApeMan
30,331 Comments - Last post 28 minutes ago by xeos23
99 Comments - Last post 36 minutes ago by xeos23
4,094 Comments - Last post 48 minutes ago by ObsidianSpire
62 Comments - Last post 51 minutes ago by charlbow
Comment has been collapsed.