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

public class Fenetre extends JFrame{

	static Galerie pan = new Galerie();
	private ClassLoader loader = Thread.currentThread().getContextClassLoader();
	private InputStream file = loader.getResourceAsStream("Galerie.java"); 
	static int x;

	public Fenetre(){
		for (x=0; x<=4; x++) {
			pan.add(Listeimage.liste[x]);
		}
		this.setSize(250, 250);
   		this.setLocation(250, 250);
   		this.addMouseListener(pan);
   		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		this.setContentPane(pan);
	}
}