DEV/DEV3.1/TP2:Transitions/Galerie/Main.java
2023-09-20 11:29:37 +02:00

20 lines
462 B
Java

import java.awt.*;
import javax.swing.*;
import java.util.*;
public class Main{
static JFrame fenetre = new JFrame();
static Galerie pan = new Galerie();
public static void main(String[] args) {
pan.add(Listeimage.image1);
fenetre.setSize(250, 250);
fenetre.setLocation(250, 250);
fenetre.addMouseListener(pan);
fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
fenetre.setContentPane(pan);
fenetre.setVisible(true);
}
}