import java.awt.*; import javax.swing.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class ControleurBoutonOui implements ActionListener { private JFrame fenetre; public ControleurBoutonOui(JFrame fenetre) { this.fenetre = fenetre; } public void actionPerformed(ActionEvent e) { this.fenetre.dispose(); } }