DEV/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/Fenetre.java
2024-09-12 15:34:31 +02:00

23 lines
585 B
Java

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