import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

public class ClicCase implements MouseListener {

	private JPanel[][] cases;
	private int[][] grille;
	private int caseX;
	private int caseY;

	public ClicCase(JPanel[][] cases, int[][] grille, int caseX, int caseY) {
		this.cases = cases;
		this.grille = grille;
		this.caseX = caseX;
		this.caseY = caseY;
	}

	public void mouseClicked(MouseEvent evenement) {
		this.cases[this.caseX][this.caseY].setLayout(new GridLayout());
		this.cases[this.caseX][this.caseY].add(new Image());
	}          // un bouton cliqué

	public void mouseEntered(MouseEvent evenement) {

	}       // debut du survol

	public void mouseExited(MouseEvent evenement) {

	}         // fin du survol

	public void mousePressed(MouseEvent evenement) {

	}         // un bouton appuyé

	public void mouseReleased(MouseEvent evenement) {

	}         // un bouton relâché

}