DEV/DEV3.1/TP4:OrganisationCode/Galerie/Main.java

25 lines
773 B
Java
Raw Normal View History

2023-09-20 11:29:37 +02:00
import java.awt.*;
import javax.swing.*;
import java.util.*;
2023-10-05 10:27:11 +02:00
import java.io.*;
2023-09-20 11:29:37 +02:00
public class Main{
static JFrame fenetre = new JFrame();
static Galerie pan = new Galerie();
2023-10-05 10:27:11 +02:00
ClassLoader loader = Thread.currentThread().getContextClassLoader();
InputStream file = loader.getResourceAsStream("Galerie.java");
InputStream file2 = loader.getResourceAsStream("Listeimage.java");
InputStream file3 = loader.getResourceAsStream("Changement.java");
2023-09-20 11:29:37 +02:00
public static void main(String[] args) {
2023-10-05 10:27:11 +02:00
pan.add(Listeimage.liste[Listeimage.index]);
2023-09-20 11:29:37 +02:00
fenetre.setSize(250, 250);
fenetre.setLocation(250, 250);
fenetre.addMouseListener(pan);
fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
fenetre.setContentPane(pan);
fenetre.setVisible(true);
}
}