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

public class Fenetre extends JFrame {
	public Fenetre() {
		this.setLocation(100,100);
		this.setSize(394,594);
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		this.setLayout(new GridLayout(1, 1));
		Balle balle = new Balle(50, 50);
		this.add(balle);
		GestionSouris gestionSouris = new GestionSouris();
		this.addMouseListener(gestionSouris);
		this.addMouseMotionListener(new GestionnaireMouvementImage(this, balle, balle.getPosX(), balle.getPosY(), gestionSouris));
	}
}
