fin TP03
This commit is contained in:
18
DEV3.1/TP02/02_Confirmation/v1/ControleurBoutonOui.java
Normal file
18
DEV3.1/TP02/02_Confirmation/v1/ControleurBoutonOui.java
Normal file
@@ -0,0 +1,18 @@
|
||||
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();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user