SAE21_2022/creer.java

21 lines
574 B
Java
Raw Normal View History

import javax.swing.*;
import java.awt.event.*;
public class Creer implements ActionListener {
private String cet_event, f_option = "Nouvelle Grille";
private JFrame cette_frame;
public Creer(JFrame frame_initial){
super();
this.cette_frame=frame_initial;
}
public void actionPerformed(ActionEvent e){
this.cet_event=e.getActionCommand();
this.cette_frame.dispose();
if (cet_event.equals(f_option)){
FenetreDefSize fen = new FenetreDefSize();
fen.MiseEnPlace();
}
}
}