SAE21_2021/CASE/observateurSAV.java

32 lines
811 B
Java
Raw Normal View History

2022-04-29 00:33:24 +02:00
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class observateurSAV implements MouseListener{
private JFrame fenetre;
private paintMenuJeu button;
public observateurSAV(paintMenuJeu button0, JFrame fenetre0){
this.button=button0;
this.fenetre=fenetre0;
}
@Override
public void mouseClicked(MouseEvent evenement){
this.fenetre.dispose();
}
@Override // un bouton cliqué
public void mouseEntered(MouseEvent evenement){
this.button.setSurvol(true);
}
@Override // debut du survol
public void mouseExited(MouseEvent evenement){
this.button.setSurvol(false);
}
@Override // fin du survol
public void mousePressed(MouseEvent evenement){
}
@Override // un bouton appuyé
public void mouseReleased(MouseEvent evenement){
}
}