BUT2/DEV/DEV2.1/TP09_Evenement2/ActionUtilisateur.java~

32 lines
688 B
Java
Raw Permalink Normal View History

2023-10-23 13:23:36 +02:00
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class ActionUtilisateur implements MouseListener{
/*public JLabel musique;
public ActionUtilisateur(JLabel musique){
this.musique = musique;
}*/
@Override
public void mouseClicked(MouseEvent evenement){
System.out.println("clic");
}
@Override
public void mouseEntered(MouseEvent evenement){
System.out.println("entré");
}
@Override
public void mouseExited(MouseEvent evenement){
System.out.println("sortis");
}
@Override
public void mousePressed(MouseEvent evenement){
}
@Override
public void mouseReleased(MouseEvent evenement){
}
}