BUT2/DEV/DEV3.1/TP02_Transitions/Q2Bouton.java

21 lines
396 B
Java
Raw Normal View History

2023-10-12 16:39:49 +02:00
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class Q2Bouton implements ActionListener{
JDialog popup;
JFrame fenetre;
public Q2Bouton(JDialog popup, JFrame fenetre){
this.popup = popup;
this.fenetre = fenetre;
}
@Override
public void actionPerformed(ActionEvent e){
popup.dispose();
if (fenetre != null){
fenetre.dispose();
}
}
}