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
Rainbow Multi Banking Project using .net Suvendu1986 5 4,936 Today 07:43 PM
Last Post: Guest
  documentation of mobile cell phone charger using ic 555 download in pdf Guest 0 0 Yesterday 11:48 PM
Last Post: Guest
  concealed weapon detection using image processing ppt Guest 0 0 21-06-2017 06:54 PM
Last Post: Guest
  block diagram mobile cell phone charger using ic 555 ppt Guest 2 1,201 21-06-2017 04:03 PM
Last Post: Guest
  gas leakage detection using gsm full ppt free download Guest 0 0 19-06-2017 09:41 AM
Last Post: Guest
  automatic night lamp with morning alarm using 8086 assembly language program Guest 0 0 15-06-2017 11:39 AM
Last Post: Guest
  automatic temperature controller for fan using thermistor pdf Guest 1 0 12-06-2017 02:49 PM
Last Post: jaseela123
  final year full report for door lock security system using rf technology Guest 1 0 12-06-2017 11:13 AM
Last Post: jaseela123
  training program in electronics and communication Guest 1 0 12-06-2017 11:08 AM
Last Post: jaseela123
  hitech protection for cars vehicle using touch switch abstract Guest 1 0 08-06-2017 11:19 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: