2023-04-18 12:29:43 +02:00
|
|
|
import javax.swing.*;
|
|
|
|
import java.awt.event.*;
|
|
|
|
|
2023-04-23 23:34:51 +02:00
|
|
|
public class Creer implements ActionListener {
|
2023-04-18 12:29:43 +02:00
|
|
|
private String cet_event, f_option = "Nouvelle Grille";
|
|
|
|
private JFrame cette_frame;
|
|
|
|
|
2023-04-23 23:34:51 +02:00
|
|
|
public Creer(JFrame frame_initial){
|
2023-04-18 12:29:43 +02:00
|
|
|
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)){
|
2023-04-23 23:34:51 +02:00
|
|
|
FenetreDefSize fen = new FenetreDefSize();
|
|
|
|
fen.MiseEnPlace();
|
2023-04-18 12:29:43 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|