Results 1 to 3 of 3

Thread: Write an Applet code to draw Human face

  1. #1

    Write an Applet code to draw Human face

    Code:
    import java.awt.*;
    import java.applet.*
    public class Face extends Applet
    {
    public void paint(Graphics g)
            {
                   g.drawOval(40,40,120,250);                 //head
                   g.drawOval(57,75,30,20);                    //left eye
                   g.drawOval(110,75,30,20);                  //right eye
                   g.fillOval(68,81,10,10);                       //pupil(l)
                   g.fillOval(121,81,10,10);                      //pupil(r)
                   g.drawOval(85,100,30,30);                  //nose
                   g.fillArc(60,125,80,40,180,180);            //mouth
                   g.drawOval(25,92,15,30);                     //ear(l)
                   g.drawOval(160,92,15,30);                   //ear(r)
               }
    }
    Last edited by angad; 02-25-2011 at 05:47 AM.
    techforum4u.com Member!!

  2. #2
    Administrator Harsh's Avatar
    Join Date
    May 2010
    Posts
    567
    Blog Entries
    92
    Rep Power
    10

    Re: Write an Applet code to draw Human face

    This is quite interesting..Please provide the Screenshot..I am eager to see this..
    " Don't limit your challenges, challenge your limits "
    (Harsh Chowdhary)

  3. #3
    Super Moderator angad's Avatar
    Join Date
    Aug 2010
    Location
    nature
    Posts
    505
    Blog Entries
    132
    Rep Power
    5

    Re: Write an Applet code to draw Human face

    we are looking forward to see the exact view it will look.
    techforum4u.com Member!!

Similar Threads

  1. Replies: 0
    Last Post: 11-03-2011, 08:37 PM
  2. Write a method code in Java to Draw a mickey mouse?
    By arvind.shukla in forum JAVA SE
    Replies: 0
    Last Post: 11-03-2011, 06:51 PM
  3. Replies: 3
    Last Post: 04-09-2011, 01:16 PM
  4. Program code to draw ellipse using C
    By sachdev in forum C
    Replies: 5
    Last Post: 04-09-2011, 04:43 AM
  5. Program Code For Use Of Listeners In Applet
    By cseradh in forum JAVA SE
    Replies: 3
    Last Post: 02-12-2011, 10:42 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Disclaimer: Users of techforum4u.com are responsible for ensuring that any material they post (article, blog posts, images or other mulitimedia content) does not violate or infringe upon the copyright, patent, trademark, or any personal or proprietary rights of any third party, and is posted with the permission of the owner of such rights.Anyone who violates these rules may have their access privileges removed without warning.