SAE21_2022/OptionsBoutonsFVG.java

23 lines
710 B
Java
Raw Normal View History

import java.awt.event.*;
public class OptionsBoutonsFVG implements ActionListener{
private String Reponses1="Quitter", Reponses2="Sauvegarder";
private String cet_event;
2023-04-18 18:38:32 +02:00
private ExporterFVG test;
private FenetreVideGrille ce_fvg;
2023-04-18 18:38:32 +02:00
protected 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);
2023-04-18 18:38:32 +02:00
} else if (cet_event.equals(this.Reponses2)){
System.out.println("Test1");
this.test = new ExporterFVG(this.ce_fvg);
this.test.jsp();
}
}
}