
Java Program to Display Human Face using Applet - Sanfoundry
Here is source code of the Java Program to draw a human face using applet. The program is successfully compiled and tested using javac compiler on Fedora 30. The program output is also shown below.
Draw a Smiley in Java Applet - GeeksforGeeks
Mar 11, 2022 · Given task is to draw a smiley face in Java Applet. Approach: Create three Ovals, one for the face, two for the eyes. Fill eyes oval with black color. Create an arc for the smile in the face. Below is the implementation of the above approach: Applet Program:
Java-Programs/write an applet program to display human face …
import java.applet.*; import java.awt.*; public class Smiley extends Applet { public void paint (Graphics g) { // Oval for face outline g.drawOval (80, 70, 150, 150); // Ovals for eyes // with …
Applet program in java to draw a face - Technotaught
Jul 24, 2019 · First, we do three things to make an applet program in j ava to draw a face. Create three Ovals, one in the face, two for the eyes. Fill eyes, oval with black color. Create an arc for the smile in the face. Also, you can use the Java compiler to compile a program. Implementation. import java.applet.*; public void paint(Graphics g){
Human-Face-using-applet-in-Java/human_face.java at main
/* <applet code="face.class" width=400 height=600> </applet> */ import java.applet.*; import java.awt.*; public class face extends Applet { public void init () { setBackground (Color.red); …
Draw a Smiley in Java Applet - Online Tutorials Library
Jul 31, 2023 · In this educational activity, we will examine how to draw a smiley face using Java Applet. We will cover the accentuation, little by little computation, and different ways of managing to accomplish this task.
Human-face-using-java-/Human_face.java at master - GitHub
import java.awt.*; import java.applet.*; public class Human extends Applet { public void paint (Graphics g) { g.drawOval (140, 40, 120, 150);//border of face g.fillArc (135, 490, 55, 40, 180, 180);//shoe g.fillArc (208, 490, 55, 40, 180, 180);//rshoe g.fillOval (168, 81, 10, 10);//l pupil g.fillOval (221, 81, 10, 10);//r pupil g.fillArc (160 ...
Human face or Smiley program in java using Applet
Dec 10, 2011 · import java.awt.*; import java.applet.*; public class HumanFace extends Applet { private int mouseX, mouseY; private boolean mouseclicked = false; public void init () { setBackground (Color.GREEN); } public void paint (Graphics g) { g.setColor (Color.YELLOW); g.fillOval (40,40,120,150); g.setColor (Color.BLACK); g.drawOval (57,75,30,30);
Program to display Human face using applet
Aug 10, 2017 · PROGRAM: import java.awt.*; import java.applet.*; /* <applet CODE="Face.class" WIDTH=200 HEIGHT=200> </applet> */ public class Face extends Applet { public void paint (Graphics g) { g.drawOval (40,40,120,150); //head g.drawOval (57,75,30,20); //left eye g.drawOval (110,75,30,20); //right eye g.fillOval (68,81,10,10); //pupil (left)
Java Program To Display A Human Face - Graphics
/*Program Displaying the human face suing basic figures, circles, arcs, lines, etc. Done using Applets. /* < applet code = "Face" width = 500 height =500> < /applet> */ import java.awt.*; import java.applet.*; public class Face extends Applet { public void paint (Graphics g) { g.drawString ("Hi !!!!!!!!!!!!!!! I Am Ninad.",20,30);