@Override
    public void windowClosing(WindowEvent e) {
        Forme forme = (Forme) o;
        Toolkit.getDefaultToolkit().beep();
        int rep = JOptionPane.showConfirmDialog(forme, "Voulez-vous vraiment quitter ?", "Quitter", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);
        if (rep == JOptionPane.OK_OPTION) {
            System.exit(0);
        } else {
            forme.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
        }
    }