PROGRAM TO DRAW A HUMAN FACE USING APPLET
#1

Code:
import java.applet.*;
import java.awt.*;
import java.util.*;
import java.awt.event.*;

//<applet code=Face width=300 height=300></applet>

public class Face extends Applet
{

    public void init()
       {
    setBackground(Color.red);
    setForeground(Color.green);
       }

    public void paint(Graphics g)
    {
    Font f=new Font("Arial",Font.BOLD,20);
    g.setFont(f);
                   g.drawOval(40,40,120,150);
                   g.drawOval(57,75,30,20);
                   g.drawOval(110,75,30,20);//eye
                   g.fillOval(68, 81,10,10);
                  g.fillOval(121, 81,10,10);
                  g.drawOval(85, 100,30,30);
                  g.drawOval(25, 92,15,30);
                  g.drawOval(160,90,15,30);
                  g.fillArc(60,125,80,40,180,180);
                  g.drawOval(160,90,15,30);
    }
}


OUTPUT
E:\msc3\jiss\java>javac Face.java
E:\msc3\jiss\java>appletviewer Face.java
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Tagged Pages: draw face using applet, program draw human face using applet, draw a human face using java applet, applet program to draw a face,
Popular Searches: arbor working draw, fcfs implementing using applet, write a program to create a biodata form in the applet using layouts, animated human face in java applet, how to draw a face on applet, applet in java biodata program, applet programming for bio data,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Messages In This Thread
PROGRAM TO DRAW A HUMAN FACE USING APPLET - by project topics - 06-04-2011, 01:23 PM

Possibly Related Threads...
Thread Author Replies Views Last Post
  VHDL program for Booth’s Multiplier smart paper boy 2 5,678 20-04-2013, 11:59 AM
Last Post: T
  Program in “LEX” to count number of vowels and consonants seminar class 2 9,645 22-03-2013, 10:20 AM
Last Post: computer topic
  Program in “LEX” to count number of Identifiers and Keywords seminar class 1 4,859 28-01-2013, 03:21 PM
Last Post: Guest
  First Applet Java source code smart paper boy 0 1,140 30-08-2011, 12:11 PM
Last Post: smart paper boy
  To predict secondary structures of human cox2 using PHD tool smart paper boy 0 1,327 10-08-2011, 03:14 PM
Last Post: smart paper boy
  To predict secondary structures of human cox2 using SOPMA tool smart paper boy 0 1,436 10-08-2011, 03:13 PM
Last Post: smart paper boy
  To predict secondary structures of human cox2 using GOR IV tool smart paper boy 0 1,366 10-08-2011, 03:12 PM
Last Post: smart paper boy
  PROGRAM TO RECOGNIZE A STRING WITH THREE COSECUTIVE 0’s smart paper boy 0 1,677 10-08-2011, 11:44 AM
Last Post: smart paper boy
  : PROGRAM TO IDENTIFY VOWELS AND CONSONANTS GIVEN AS INPUT smart paper boy 0 2,413 10-08-2011, 11:44 AM
Last Post: smart paper boy
  Program to Encrypt and decrypt a text data using RSA algorithm smart paper boy 0 2,538 10-08-2011, 11:43 AM
Last Post: smart paper boy

Forum Jump: