This commit is contained in:
Simoes Lukas
2025-09-24 16:24:52 +02:00
parent 2c3e150ec5
commit 3b7b5533c1
31 changed files with 355 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
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));
}
}