DEV/DEV3.1/TP2:Transitions/Listeimage.java
2023-10-05 10:27:11 +02:00

18 lines
656 B
Java

import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.util.*;
import java.io.*;
public class Listeimage{
ClassLoader loader = Thread.currentThread().getContextClassLoader();
static JLabel image1 = new JLabel(new ImageIcon("./img/image1.jpg"));
static JLabel image2 = new JLabel(new ImageIcon("./img/image2.jpg"));
static JLabel image3 = new JLabel(new ImageIcon("./img/image3.jpg"));
static JLabel image4 = new JLabel(new ImageIcon("./img/image4.jpg"));
static JLabel image5 = new JLabel(new ImageIcon("./img/image5.jpg"));
static JLabel[] liste = {image1, image2, image3, image4, image5};
static int index=0;
}