SAE21_2022/creer.java

21 lines
576 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 hehe = new FenetreDefSize();
hehe.MiseEnPlace();
}
}
}