DEV/DEV3.1/TP2:Transitions/GalerieVersionTransition/Fenetre.java

20 lines
554 B
Java
Raw Permalink Normal View History

2024-09-12 15:34:31 +02:00
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);
}
}