33 lines
607 B
Java
33 lines
607 B
Java
|
import java.awt.*;
|
||
|
import javax.swing.*;
|
||
|
import java.awt.event.*;
|
||
|
import java.util.*;
|
||
|
|
||
|
public class Galerie extends JPanel implements MouseListener{
|
||
|
|
||
|
public Galerie(){
|
||
|
super();
|
||
|
}
|
||
|
|
||
|
public void mouseClicked(MouseEvent e){
|
||
|
int x = e.getX();
|
||
|
if (x <= this.getWidth()/5){
|
||
|
Changement.fenetreCliquer(0);
|
||
|
}else if(x >= (this.getWidth()/5)*4){
|
||
|
Changement.fenetreCliquer(1);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public void mouseEntered(MouseEvent evenement){
|
||
|
}
|
||
|
|
||
|
public void mouseExited(MouseEvent evenement){
|
||
|
}
|
||
|
|
||
|
public void mousePressed(MouseEvent evenement){
|
||
|
}
|
||
|
|
||
|
public void mouseReleased(MouseEvent evenement){
|
||
|
}
|
||
|
}
|