Evo ti ovo. Provereno radi
Kod:
public void run() {
JButton[] butt = new JButton[5];
for (int i = 0; i < this.paneli.length; i++)
{
for (int j = 0; j < butt.length; j++)
{
butt[j] = new JButton();
this.paneli[i].add(butt[j]).setBackground(Color.blue);
try {sleep(500L);} catch (InterruptedException e) {}
butt[j].setVisible(false);
butt[j].setVisible(true);
paneli[i].repaint();
}
}
}