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");

	public Fenetre(){
		pan.add(Listeimage.liste[Listeimage.index]);
		this.setSize(250, 250);
   		this.setLocation(250, 250);
   		this.addMouseListener(pan);
   		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		this.setContentPane(pan);
	}
}