SAE21_2021/MenuListener.java

15 lines
401 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;
2022-05-23 19:32:09 +02:00
private FrameMenu menu;
public MenuListener(FrameJeu fenetre, FrameMenu menu){
2022-05-21 22:17:25 +02:00
this.fenetre=fenetre;
2022-05-23 19:32:09 +02:00
this.menu=menu;
2022-05-21 22:17:25 +02:00
}
@Override
2022-05-21 22:17:25 +02:00
public void actionPerformed(ActionEvent event){
2022-05-23 19:32:09 +02:00
this.menu.setVisible(true);
2022-05-21 22:17:25 +02:00
this.fenetre.dispose();
}
}