package formesable;
import javax.swing.JComponent;
import java.awt.Graphics;
import java.awt.Color;
 
public class Sablier extends JComponent {
  @Override
  public void paintComponent(Graphics pinceau) {
    Graphics secondPinceau = pinceau.create();
    secondPinceau.setColor(Color.CYAN);
    int[] x = null;
    y = new int[] {90,0,0,90};
    int[] y = null;
    x = new int[] {100,0,100,0};
    secondPinceau.fillPolygon(x,y,4);
  }
}