Files
DEV/DEV3.1/TP02/02_Confirmation/v1/Fenetre.java
Simoes Lukas 3b7b5533c1 fin TP03
2025-09-24 16:24:52 +02:00

19 lines
444 B
Java

import java.awt.*;
import javax.swing.*;
public class Fenetre extends JFrame {
public Fenetre() {
this.setSize(900, 450);
this.setLocation(100, 100);
this.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
this.setLayout(new GridLayout(1, 1));
JLabel img = new JLabel(new ImageIcon("img1.jpg"));
this.add(img);
this.addMouseListener(new Controlleur(img, this));
this.addWindowListener(new ControleurFenetre(this));
}
}