SAE21_2022/OptionsBoutonsFVG.java

23 lines
707 B
Java

import java.awt.event.*;
public class OptionsBoutonsFVG implements ActionListener{
private String Reponses1="Quitter", Reponses2="Sauvegarder";
private String cet_event;
private ExporterFVG test;
private FenetreVideGrille ce_fvg;
public OptionsBoutonsFVG(FenetreVideGrille un_fvg){
this.ce_fvg = un_fvg;
}
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 ExporterFVG(this.ce_fvg);
this.test.jsp();
}
}
}