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

public class Test {
	public static void main(String[] args) {
		JFrame fenetre = new JFrame();

		fenetre.setSize(500,500);
		fenetre.setLocation(100,100);
		fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

		FlowLayout layout = new FlowLayout(FlowLayout.CENTER);
		fenetre.setLayout(layout);

		JButton[] tab = {new JButton("Oui"), new JButton("Non"), new JButton("NSPP")};
		
		fenetre.add(new JLabel("Aimez-vous les pieds ?"));
		for (int i = 0; i < 3; i++) {
			fenetre.add(tab[i]);
		}


		fenetre.setVisible(true);

	}
}