Java-Applet: Dessiner un Smiley

Author:

Java-Applet: Dessiner un Smiley
{filelink=592}

/***** Code de MesExemples.com *******/
import java.awt.*;
import java.applet.*;

public class applet extends Applet
{
	public void paint(Graphics g)
	{	
Font f = new Font("Helvetica", Font.BOLD,20);
		g.setFont(f);
		g.drawString("Continuer à sourir!!!", 50, 30);
		g.drawOval(60, 60, 200, 200);
		g.fillOval(90, 120, 50, 20);
		g.fillOval(190, 120, 50, 20);
		g.drawLine(165, 125, 165, 175);
		g.drawArc(110, 130, 95, 95, 0, -180);
	}
}

Code HTML d'exécution de l'applet



	
	
	
		

A Voir sur le même Sujet:

  • dessiner un smiley
  • applet java exemple

Leave a Reply

Your email address will not be published. Required fields are marked *