import javax.swing.*;
import java.awt.*;

public class Bouton {
  public static void main(String[] args) {
    JFrame fenetre = new JFrame();
    fenetre.setSize(500, 300);
    fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    JButton bouton = new JButton("bonjour");
    JButton bouton1 = new JButton("bonsoir");
    JButton bouton2 = new JButton("aurevoir");
    JButton bouton3 = new JButton("bientôt");
    JButton bouton4 = new JButton("salut");
    fenetre.add(bouton, BorderLayout.NORTH);
    fenetre.add(bouton1, BorderLayout.EAST);
    fenetre.add(bouton2, BorderLayout.WEST);
    fenetre.add(bouton3, BorderLayout.SOUTH);
    fenetre.add(bouton4, BorderLayout.CENTER);
    fenetre.setVisible(true);
  }
}