Important: Use custom search function to get better results from our thousands of pages

Use " " for compulsory search eg:"electronics seminar" , use -" " for filter something eg: "electronics seminar" -"/tag/" (used for exclude results from tag pages)


 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PROGRAM TO DRAW A HUMAN FACE USING APPLET
Post: #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
Post: #2
You can use a java applet for that. Apply the formulas of computer graphics and draw a human face. You can also draw different shapes by using the applet and swing also.
Post: #3
How to make applet class first its shwng error
Post: #4
sunil chaudhry
 

Marked Categories : applet face, program of applet which draw human face, how to draw human face in java, draw human face in java applet, programme to draw the face, program to make face in java using applets, applet program to draw a face, coding draw a human face in applet, java applet code for face, applet programming in java, humanface using applets, face program for applet, c code to display human face using computer graphics, human face in applet, program of face in applet in java, applet java program for the output of draw the house, draw human face steps using programming, program of house using applet, how to draw a face on applet, program for human face using applets,

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

Image Verification
Image Verification
(case insensitive)
Please enter the text within the image on the left in to the text box below. This process is used to prevent automated posts.

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  generating electricity using rotating door in ppt Guest 1 262 18-11-2017 11:02 AM
Last Post: jaseela123
Sad hide image inside another image using java source code Guest 1 208 18-11-2017 10:10 AM
Last Post: jaseela123
  interfacing lcd with 8255 using 8086 Guest 1 0 17-11-2017 01:07 PM
Last Post: jaseela123
  A Blur-Robust Descriptor with Applications to Face Recognition Guest 1 205 17-11-2017 11:40 AM
Last Post: jaseela123
  washing machine control using microprocessor 8086 Guest 1 0 07-11-2017 09:42 AM
Last Post: jaseela123
  PRE-PAID POWER CONSUPTION USING COIN BOX REPORT seminar flower 1 899 27-10-2017 01:01 PM
Last Post: nagaland 8pm today
  Electronics Letter Box Using IC 555 seminar tips 2 2,823 26-10-2017 02:37 PM
Last Post: jaseela123
  unrestricted simplex protocol in computer network in c program Guest 1 0 25-10-2017 04:25 PM
Last Post: jaseela123
  Industrial Conveyor System Using Magnetic Levitation system seminar code 2 251 25-10-2017 12:03 PM
Last Post: jaseela123
  detection of glaucoma using image processing techniques Guest 1 0 25-10-2017 11:53 AM
Last Post: jaseela123
This Page May Contain What is PROGRAM TO DRAW A HUMAN FACE USING APPLET And Latest Information/News About PROGRAM TO DRAW A HUMAN FACE USING APPLET ,If Not ...Use Search to get more info about PROGRAM TO DRAW A HUMAN FACE USING APPLET Or Ask Here

Options: