SAE21_2022/OptionsBoutonsFRG.java

24 lines
713 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;
private Exporter test;
private FenetreRndmGrille ce_frg;
protected 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");
this.test = new Exporter(this.ce_frg);
this.test.jsp();
}
}
}