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);
    }
}