24 lines
719 B
Java
24 lines
719 B
Java
import java.awt.event.*;
|
|
|
|
public class OptionsBoutonsFRG implements ActionListener{
|
|
private String Reponses1="Quitter", Reponses2="Sauvegarder";
|
|
private String cet_event;
|
|
private ExporterFRG 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 ExporterFRG(this.ce_frg);
|
|
this.test.jsp();
|
|
}
|
|
}
|
|
} |