import javax.swing.*;
import java.awt.*;
import java.io.*;

public class Polygoneur extends JPanel 
{
    @Override
    protected void paintComponent(Graphics g) 
    {
        super.paintComponent(g);
        
    }

    public Polygoneur(int[] xp,int[] yp)
    {
        g.setColor(Color.BLUE);  // Couleur de remplissage
        g.fillPolygon(xp, yp, xp.length);
    }
   
}