Bonjours a tous, je vous explique mon petit pb,
Déjà voici mon code:
public class Tableau extends JPanel
{
public Tableau()
{
JButton tabBouton[] = new JButton[4];
JButton bouton = new JButton("test");
String[] noms = {"un", "deux", "trois", "quatre"};
for(int i = 0; i < tabBouton.length; i++)
{
this.add(tabBouton[i], noms[i]);
}
}
}
Sans doute une erreur vraiment bateau mais je n'arrive pas a ajouter mes quatre JButon, si quelqu'un pourrait m'aider ce serait sympathique.