DEV/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/Changement.java

19 lines
518 B
Java
Raw Normal View History

2024-09-12 15:34:31 +02:00
import java.awt.*;
import javax.swing.*;
import java.util.*;
import java.io.*;
public class Changement{
ClassLoader loader = Thread.currentThread().getContextClassLoader();
InputStream file = loader.getResourceAsStream("Main.java");
InputStream file2 = loader.getResourceAsStream("Listeimage.java");
static public void fenetreCliquer(int LR){
if (LR==1){
Main.fenetre.pan.card.next(Main.fenetre.pan);
}else {
Main.fenetre.pan.card.previous(Main.fenetre.pan);
}
Main.fenetre.revalidate();
}
}