A Project Synopsis Animation Using Applet: Doraemon: Submitted by
A Project Synopsis Animation Using Applet: Doraemon: Submitted by
on
Submitted By
Kharghar,Navi Mumbai
1
Saraswati College of Engineering, Kharghar
Vision:
Mission:
Vision:
Mission:
2. To develop technical and managerial skills through training and modern teaching-
learning process.
2
(Approved by AICTE, reg. By MaharashtraGovt. DTE,Affiliated to Mumbai University)
PLOT NO. 46/46A, SECTOR NO 5, BEHIND MSEB SUBSTATION, KHARGHAR,NAVI MUMBAI-410210
Tel. : 022-27743706 to 11 * Fax : 022-27743712 * Website: www.sce.edu.in
CERTIFICATE
This is to certify that the requirements for the synopsis entitled,” ”
In partial fulfillment of Sem –III Bachelor of Engineering of Mumbai University, Data Science of
Saraswati college of Engineering, Kharghar during the academic year 2021-22.
3
Acknowledgement
A project is something that could not have been materialized without cooperation of many people. This project
shall be incomplete if I do not convey my heartfelt gratitude to those people from whom I have got considerable
support and encouragement.
It is a matter of great pleasure for us to have a respected Prof. Mitrakshi Patil as my project guide. We are
thankful to her for being constant source of inspiration.
We would also like to give our sincere thanks to Prof. Shraddha Subhedar, H.O.D, AI & ML and Data
Science Department, Prof. Mitrakshi Patil, Project co-ordinator for their kind support.
We would like to express our deepest gratitude to Dr. Manjusha Deshmukh, our principal of Saraswati college
of Engineering, Kharghar, Navi Mumbai
Last but not the least I would also like to thank all the staffs of Saraswati college of Engineering (Information
Technology Department) for their valuable guidance with their interest and valuable suggestions brightened us.
4
Project Title
ABSTRACT
5
INDEX
1. Introduction ………………………………………………….(10-12)
2. Problem statement……………………………………………()
4. Code…………………………………………………………….(18-20)
5. Results ………………………………………………………….(21)
6. Conclusion ………………………………………………………(22)
7. References ………………………………………………………..(22)
6
Program Educational Objectives (PEO)
1. To prepare the candidate for a successful career in the industry and make him acquainted with the
latest software and hardware,
2. To enable student to work productively as computer engineers, including supportive teamwork and
leadership roles on multidisciplinary teams,
3. Graduates are prepared to be responsible computing professionals in their own area of interest,
4. To provide the candidate with a sound foundation in mathematics, software technologies, database
technologies, networking, hardware and to prepare them for post graduate studies and research
programs.
5. To promote the awareness of lifelong learning among students and to introduce them to professional
ethics and codes of professional practice,
6. To demonstrate effective communication skills in oral, written and electronic media.
7
Program Outcomes (PO)
8
Lab Objectives:
1. To acquaint with the process of identifying the needs and converting it into the problem.
3. To acquaint with the process of applying basic engineering fundamentals to attempt solutions to the
problems.
Lab Outcomes:
4. Draw the proper inferences from available results through theoretical/ experimental/simulations.
5. Analyze the impact of solutions in societal and environmental context for sustainable development.
9
INTRODUCTION
ANIMATION USING APPLET: DORAEMON
1.0 Rationale
A Java applet is a small application that is written in the Java programming language, or another
programming language that compiles to Java byte code, and delivered to users in the form of Java byte
code. The user launched the Java applet from a web page, and the applet was then executed within a
Java virtual machine (JVM) in a process separate from the web browser itself. A Java applet could
appear in a frame of the web page, a new application window, Sun's Applet Viewer, or a stand-alone
tool for testing applets. Applets are used to make the web site more dynamic and entertaining.
10
4.0 Literature Review
● Applet is a Java program that can be embedded into a web page. It runs inside the web browser
and works at client side.
● Applet is embedded in a HTML page using the APPLET or OBJECT tag and hosted on a web
server.
● Applets are used to make the web site more dynamic and entertaining.
● All applets are sub-classes (either directly or indirectly) of java.applet.Applet
● Applets are not stand-alone programs. Instead, they run within either a web browser or an applet
viewer. JDK provides a standard applet viewer tool called applet viewer.
● In general, execution of an applet does not begin at main() method.
● Output of an applet window is not performed by System.out.println(). Rather it is handled with
various AWT methods, such as drawString().
● Life cycle of an applet:
● init( ) : The init( ) method is the first method to be called. This is where you should initialize
variables. This method is called only once during the run time of your applet.
● start( ) : The start( ) method is called after init( ). It is also called to restart an applet after it has
been stopped. Note that init( ) is called once i.e. when the first time an applet is loaded whereas
start( ) is called each time an applet’s HTML document is displayed onscreen. So, if a user
leaves a web page and comes back, the applet resumes execution at start( ).
11
● paint( ) : The paint( ) method is called each time an AWT-based applet’s output must be
redrawn. This situation can occur for several reasons. For example, the window in which the
applet is running may be overwritten by another window and then uncovered. Or the applet
window may be minimized and then restored.
paint( ) is also called when the applet begins execution. Whatever the cause, whenever the
applet must redraw its output, paint( ) is called.
The paint( ) method has one parameter of type Graphics. This parameter will contain the
graphics context, which describes the graphics environment in which the applet is running. This
context is used whenever output to the applet is required.
● stop( ) : The stop( ) method is called when a web browser leaves the HTML document
containing the applet—when it goes to another page, for example. When stop( ) is called, the
applet is probably running. You should use stop( ) to suspend threads that don’t need to run
when the applet is not visible. You can restart them when start( ) is called if the user returns to
the page.
● destroy( ) : The destroy( ) method is called when the environment determines that your applet
needs to be removed completely from memory. At this point, you should free up any resources
the applet may be using. The stop( ) method is always called before destroy( ).
12
RESOURCES REQUIRED
13
PROPOSED SYSTEM
14
ALGORITHM
1. Start
2. Declare class Doremon
3. Inherit the Applet class using header file import java.applet.Applet
4. Declare main method paint
5. Draw and fill the body of the character using applet functions
6. Draw and fill the head of the character using applet functions
7. Draw and fill the face of the character using applet functions
8. Draw and fill the mouth of the character using applet functions
9. Draw and fill the eyes of the character using applet functions
10. Draw and fill the nose of the character using applet functions
11. Draw the moustache using applet functions
12. Draw and fill the necklace of the character using applet functions
13. Draw and fill the hands of the character using applet functions
14. Stop
15
FLOWCHART
Start
16
2
1
Stop
17
CODE
import java.applet.Applet;
import java.awt.*;
/*
<applet code = "Doremon" width = 550 height = 550></applet>
*/
public class Doremon extends Applet
{
public void paint(Graphics g)
{
//body
g.setColor(Color.WHITE);
g.fillOval(204,405,65,40);
g.setColor(Color.BLACK);
g.drawOval(204,405,65,40);
g.drawOval(282,405,65,40);
int x[]={200,350,400,420,348,340,290,275,260,210,218,188,168};
int y[]={250,250,200,220,300,420,420,380,420,420,310,360,340};
g.setColor(Color.BLUE);
g.fillPolygon(x,y,13);
g.setColor(Color.BLUE);
g.fillPolygon(x,y,13);
g.setColor(Color.WHITE);
g.fillOval(223,240,115,125);
g.setColor(Color.BLACK);
g.drawOval(223,240,115,125);
g.drawLine(240,310,320,310);
g.drawArc(240,270,80,80,180,180);
//head
g.setColor(Color.BLUE);
g.fillOval(170,85,210,180);
g.setColor(Color.BLACK);
g.drawOval(170,85,210,180);
18
//face
g.setColor(Color.WHITE);
g.fillOval(188,125,175,135);
g.setColor(Color.BLACK);
g.drawOval(188,125,175,135);
//mouth
g.setColor(Color.BLACK);
g.drawLine(230,198,325,200);
g.drawArc(230,155,95,87,180,180);
g.setColor(Color.BLACK);
g.fillArc(230,155,95,87,180,180);
g.drawArc(255,214,50,40,-170,-170);
g.setColor(Color.RED);
g.fillArc(255,214,50,40,-170,-190);
g.fillArc(255,227,48,15,180,180);
//left eye
g.setColor(Color.WHITE);
g.fillOval(232,100,45,60);
g.setColor(Color.BLACK);
g.drawOval(232,100,45,60);
g.setColor(Color.BLACK);
g.fillOval(255,125,14,24);
//right eye
g.setColor(Color.WHITE);
g.fillOval(278,100,45,60);
g.setColor(Color.BLACK);
g.drawOval(278,100,45,60);
g.setColor(Color.BLACK);
g.fillOval(285,125,14,24);
//nose
g.setColor(Color.RED);
g.fillOval(260,148,34,34);
g.setColor(Color.BLACK);
g.drawOval(260,148,34,34);
19
//moustache line
g.drawLine(278,181,278,198);
g.drawLine(310,170,368,150);
g.drawLine(310,180,368,180);
g.drawLine(310,190,368,210);
g.drawLine(240,170,188,150);
g.drawLine(240,180,188,180);
g.drawLine(240,190,188,210);
//necklace
g.setColor(Color.red);
g.fillRect(215,248,120,15);
g.setColor(Color.black);
g.drawRect(215,248,120,15);
//bell
g.setColor(Color.yellow);
g.fillOval(260,250,40,40);
g.setColor(Color.black);
g.drawOval(260,250,40,40);
//left hand
g.setColor(Color.white);
g.fillOval(158,330,40,40);
g.setColor(Color.black);
g.drawOval(158,330,40,40);
//right hand
g.setColor(Color.white);
g.fillOval(390,190,40,40);
g.setColor(Color.black);
g.drawOval(390,190,40,40);
}
}
20
RESULT
21
Conclusion
Java applets are small pieces of code that work in another program. They help make a page more
dynamic. In addition to adding bling to a site, Java applets also add another layer of computer security.
The biggest advantage of applets is that they can be used on multiple platforms.
We have thus designed our project using applets.
Today we have hundreds of websites for online booking from a taxi to hotel.
Thus, Application of our project can be as a part of websites or web pages that work support online
booking of hotels or make travel plans.
Since applets can be easily downloaded over the internet our project being applet based can be used for
a global use.
REFERENCES
1. www.dokumen.tips
2. www.cs.columbia.edu
3. www.crio.do
4. www.sykfilabs.com
5. www.coursehero.com
22