package formegeo;
import javax.swing.JComponent;
import java.awt.Graphics;
import java.awt.Color;
 
public class Carre extends JComponent {
  @Override
  public void paintComponent(Graphics pinceau) {
    Graphics secondPinceau = pinceau.create();
    secondPinceau.setColor(Color.BLUE);
    secondPinceau.drawRect(10,10,50, 50);
  }
}