fini ex 1 du transition

This commit is contained in:
2024-09-12 15:19:28 +02:00
parent 0f828b31cf
commit 6e4a3d85d0
29 changed files with 876 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
import javax.swing.*;
import java.awt.*;
public class View_galerie{
public void affichage(String nom, Controller_galerie controller){
JFrame fenetre = new JFrame();
fenetre.setSize(500, 300);
fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JLabel image = new JLabel(new ImageIcon(nom));
controller.SetPage(fenetre,image);
image.addMouseListener(controller);
fenetre.add(image);
fenetre.setVisible(true);
}
}