This commit is contained in:
EmmanuelTiamzon
2025-09-30 09:43:41 +02:00
parent f7de13bc2a
commit 7019a3b7ea
176 changed files with 9458 additions and 149 deletions

View File

@@ -0,0 +1,29 @@
import java.awt.*;
import javax.swing.*;
public class Fenetre extends JFrame {
public Fenetre() {
this.setSize(700, 100);
this.setLocation(100, 100);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setLayout(new GridLayout(1, 10));
Cercle[] tabCercles = new Cercle[10];
for (int i = 0; i != 5; i++) {
Cercle nouveauCercle = new Cercle(Color.ORANGE);
this.add(nouveauCercle);
tabCercles[i] = nouveauCercle;
}
for (int i = 5; i != 10; i++) {
Cercle nouveauCercle = new Cercle(Color.LIGHT_GRAY);
this.add(nouveauCercle);
tabCercles[i] = nouveauCercle;
}
MoletteSouris gestionSouris = new MoletteSouris(this, tabCercles);
this.addMouseWheelListener(gestionSouris);
}
}