SAE21_2021/MenuListener.java

11 lines
303 B
Java
Raw Normal View History

2022-05-21 22:17:25 +02:00
import java.awt.event.*;
public class MenuListener implements ActionListener{
private FrameJeu fenetre;
public MenuListener(FrameJeu fenetre){
this.fenetre=fenetre;
}
public void actionPerformed(ActionEvent event){
new FrameMenu();
this.fenetre.dispose();
}
}