Saluut j'ai créer une matrice en java et je veux ajouter deux boutons en dessous de ma matrice "valider" et "retour"

J'ai pas réussi à faire ceci , voici mon code :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
public void fillContent()
{
  this.setLayout(new GridLayout(width+1, height+1));
  this.add(new JLabel());
 
  for (int x = 0; x < width; x++)
  {
    this.add(createColumnHeader(x));
  }
 
  for (int y = 0; y < height; y++)
  {
    this.add(createRowHeader(y));
    for (int x=0; x<width; x++)
    {
      this.add(createCell(x,y));
    }
  }
}