Académique Documents
Professionnel Documents
Culture Documents
CHARMOUH ABDELLAH
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.SwingUtilities;
import java.awt.Color;
import java.awt.Graphics;;
import java.awt.Dimension;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.util.ArrayList;
import java.util.Random;
class CercleGraphique {
this.rayon = rayon;
this.x = x;
this.y = y;
this.couleur = couleur;
this.plein = plein;
Controleur(Clics panneau) {
this.panneau = panneau;
CercleGraphique c;
int rayon = 5;
panneau.getListe().add(c);
panneau.repaint();
addMouseListener(new Controleur(this));
super.paintComponent(g);
ArrayList<CercleGraphique> getListe() {
return liste;
monCadre.setContentPane(new Clics());
monCadre.pack();
monCadre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
monCadre.setVisible(true);