32 lines
811 B
Java
32 lines
811 B
Java
|
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){
|
||
|
|
||
|
}
|
||
|
}
|