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

public class Choix {
  public static void main(String[] args) {
    JFrame fenetre = new JFrame();
    fenetre.setSize(500, 300);
    fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    JRadioButton etiquette = new JRadioButton("Gryffondor");
    JRadioButton etiquette1 = new JRadioButton("Serdaigle");
    JRadioButton etiquette2 = new JRadioButton("Serpantard");
    ButtonGroup btn = new ButtonGroup();
    btn.add(etiquette);
    btn.add(etiquette1);
    btn.add(etiquette2);
    fenetre.add(etiquette, BorderLayout.NORTH);
    fenetre.add(etiquette1, BorderLayout.CENTER);
    fenetre.add(etiquette2, BorderLayout.SOUTH);
    fenetre.setVisible(true);
  }
}