SAE21_2022/OptionsBoutonsFRG.java

24 lines
716 B
Java
Raw Normal View History

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;
private FenetreRndmGrille ce_frg;
public OptionsBoutonsFRG(FenetreRndmGrille un_frg){
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);
this.test.jsp();
}
}
}