2023-04-18 12:29:43 +02:00
|
|
|
import java.awt.event.*;
|
|
|
|
|
|
|
|
public class OptionsBoutonsFRG implements ActionListener{
|
|
|
|
private String Reponses1="Quitter", Reponses2="Sauvegarder";
|
|
|
|
private String cet_event;
|
2023-04-18 18:38:32 +02:00
|
|
|
private ExporterFRG test;
|
2023-04-18 12:29:43 +02:00
|
|
|
private FenetreRndmGrille ce_frg;
|
|
|
|
|
2023-04-19 19:13:00 +02:00
|
|
|
public OptionsBoutonsFRG(FenetreRndmGrille un_frg){
|
2023-04-18 12:29:43 +02:00
|
|
|
this.ce_frg = un_frg;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void actionPerformed(ActionEvent e){
|
|
|
|
this.cet_event=e.getActionCommand();
|
|
|
|
if (cet_event.equals(this.Reponses1)){
|
|
|
|
System.exit(1);
|
|
|
|
}
|
|
|
|
else if (cet_event.equals(this.Reponses2)){
|
|
|
|
System.out.println("Test1");
|
2023-04-18 18:38:32 +02:00
|
|
|
this.test = new ExporterFRG(this.ce_frg);
|
2023-04-18 12:29:43 +02:00
|
|
|
this.test.jsp();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|