2023-04-18 12:29:43 +02:00
|
|
|
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 12:29:43 +02:00
|
|
|
|
2023-04-18 18:38:32 +02:00
|
|
|
protected OptionsBoutonsFVG(FenetreVideGrille un_fvg){
|
|
|
|
this.ce_fvg = un_fvg;
|
2023-04-18 12:29:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
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();
|
|
|
|
}
|
2023-04-18 12:29:43 +02:00
|
|
|
}
|
|
|
|
}
|