25 lines
773 B
Java
25 lines
773 B
Java
import java.awt.*;
|
|
import javax.swing.*;
|
|
import java.util.*;
|
|
import java.io.*;
|
|
|
|
public class Main{
|
|
|
|
static JFrame fenetre = new JFrame();
|
|
static Galerie pan = new Galerie();
|
|
ClassLoader loader = Thread.currentThread().getContextClassLoader();
|
|
InputStream file = loader.getResourceAsStream("Galerie.java");
|
|
InputStream file2 = loader.getResourceAsStream("Listeimage.java");
|
|
InputStream file3 = loader.getResourceAsStream("Changement.java");
|
|
|
|
public static void main(String[] args) {
|
|
|
|
pan.add(Listeimage.liste[Listeimage.index]);
|
|
fenetre.setSize(250, 250);
|
|
fenetre.setLocation(250, 250);
|
|
fenetre.addMouseListener(pan);
|
|
fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
|
fenetre.setContentPane(pan);
|
|
fenetre.setVisible(true);
|
|
}
|
|
} |