[go: up one dir, main page]

0% found this document useful (0 votes)
48 views16 pages

JPR 1

This document is a micro project report submitted by students Daud Renuka Balasheb, Kulkarni Mrunal Makarand, and Lakade Vaishnavi Manohar for their diploma in computer engineering. The project involved creating a car animation using a Java applet. The report includes an introduction, aims of the project, literature review on Java applets, the actual procedure followed to create the animation, the output, skills developed, and applications of the project. The project helped the students learn about inserting images, different shapes, and creating animations in Java applets.

Uploaded by

Vaishnavi Lakade
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views16 pages

JPR 1

This document is a micro project report submitted by students Daud Renuka Balasheb, Kulkarni Mrunal Makarand, and Lakade Vaishnavi Manohar for their diploma in computer engineering. The project involved creating a car animation using a Java applet. The report includes an introduction, aims of the project, literature review on Java applets, the actual procedure followed to create the animation, the output, skills developed, and applications of the project. The project helped the students learn about inserting images, different shapes, and creating animations in Java applets.

Uploaded by

Vaishnavi Lakade
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

A

MICRO PROJECT REPORT ON


“CAR ANIMATION USING APPLET”
FOR THE DIPLOMA IN COMPUTER ENGINEERING
SUBMITTED BY
DAUD RENUKA BALASAHEB
KULKARNI MRUNAL MAKARAND
LAKADE VAISHNAVI MANOHAR
UNDER THE GUIDANCE OF
Mr V.N. Shahane

DEPARTMENT OF COMPUTER ENGINEERING


CSMSS COLLEGE OF POLYTECHNIC, AURANGABAD
MAHARASHTRA, INDIA

AND
MAHARASHTRA STATE BOARD OF TECHNICAL
EDUCATION, MUMBAI

ACADEMIC YEAR 2021-22

Created
withPDFBear.
CERTIFICATE

This is to certify that Following Students of Fourth Semester of Diploma in


Computer Engineering of Institute CSMSS College of Polytechnic (code: 1152)
have completed the Micro Project satisfactorily in subject Java Programming
(22412) for the academic year 2021-2022 as prescribed in the curriculum.

Place:Aurangabad
Date:

Sr.no Name of the students Enrollment no.

1 DAUD RENUKA BALASAHEB 2011520053

2 KULKARNI MRUNAL MAKARAND 2011520085

3 LAKADE VAISHNAVI MANOHAR 2011520088

PROJECT GUIDE HEAD OF DEPARTMENT

PRINCIPAL

Created
withPDFBear.
ACKNOWLEDGEMENT

We would like to express our thanks to the people who have helped us most
throughout our project. We would like to express our sincere thanks to the principal of
CSMSS College of Polytechnic Dr G.B.Dongre for being always with us as a
motivator. We are thankful to the H.O.D Mr S.U. Kakde of Computer Engineering
Department for his kind support. We are grateful to our Project Guide Mr V.N.
Shahane for nonstop support and continuous motivation for the project. His help
made us possible to complete our project with all accurate information. A special
thanks of our goes to our friends who helped us in completing the project, where they
all exchanged their own interesting ideas. We wish to thanks our parents for their
personal support or attention who inspired us to go our own way. Finally, we would
like to thank God who made all things possible for us till the end.

Sr. Name of Students Sign


No.
1 DAUD RENUKA BALASAHEB

2 KULKARNI MRUNAL MAKARAND

3 LAKADE VAISHNAVI MANOHAR

Created
withPDFBear.
•••••••••••••••••••••••••••••••••INDEX••••••••••••••••••••••••••••••••••••

1. MICRO-PROJECT PROPOSAL ...................................................1-2

2. RATIONALE ..................................................................................... 3

3. AIMS/BENEFITS OF THE MICRO-PROJECT .............................. 4

4. LITERATURE REVIEW............................................................... 5-8

5. ACTUAL PROCEDURE FOLLOWED ...........................................9

6. OUTPUT OF THE MICRO-PROJECT .......................................... 10

7. SKILL DEVELOPED/LEARNING OUTCOMES


OF MICRO-PROJECT .................................................................. 11

8. APPLICATIONS OF MICRO-PROJECT .................................... 12

Created
withPDFBear.
1. MICRO–PROJECT PROPOSAL

TITLE: Car animation using applet.


AIMS/BENEFITS OF THE MICRO-PROJECT

We learned about java applet.


We learnt about how to different shapes in java applet.
We learnt about how insert image in java applet.
We learnt about how to create animations using java.

1.0 COURSE OUTCOMES ADDRESSED-

Develop programs using graphics and applet.

3.0 PROPOSED METHODOLOGY:


01. Basic information about how to compile and run the java applet program.
02. Basic information about try and catch block.
03. Basic information about system coordinates.

ACTIONPLAN:

Sr. Details of Activities Planned Planned Name of


No. Start Date Finish Date Responsible
Team
Member
1 Decide subject for micro-project. 20/02/22 28/02/22 All
2 Preparation and submission of All
Abstract. 05/03/22 15/03/22

3 Collection of data. 16/03/22 31/03/22 All


4 Discussion and outline All
of Content. 02/04/22 10/04/22

5 Formulation of content. 15/04/22 20/04/22 All


6 Editing of Content. 25/04/22 30/04/22 All
7 Final submission of All
Micro-Project.

1
Created
withPDFBear.
RESOURCES REQUIRED:

Sr.No Name of Resource Specifications Quantity Remarks


/Material
1 Computer RAM minimum 1
2GB,i3-i5preferable
2 Operating Windows10/XP/LINUX 1
System
4 Internet Google
5 Books Java Programming 1

❖ NAMES OF TEAM MEMBER WITH ROLL NO:

Sr.no Name of Students Roll no

1 DAUD RENUKA BALASAHEB 12

2 KULKARNI MRUNAL MAKARAND 43

3 LAKADE VAISHNAVI MANOHAR 46

Approved by,

Mr V.N.Shahane

2
Created
withPDFBear.
2. RATIONALE

Java is platform independent, open-source object oriented programming language enriched


with free and open source libraries. In current industrial scenario java has the broad industry support
and is prerequisite with many allied technologies like advanced java, java server pages, and android
application development. Thus, current industrial trends necessitate acquiring java knowledge for
computer engineering and information technology graduates. This course develops necessary skills
in students to apply object oriented programming techniques in java so that students will be able to
develop complete application using core java.

3
Created
withPDFBear.
3. AIMS / BENEFITS OF THE MICRO-PROJECT

Micro-Project aims at

To this get information about java applet.

To get information about different shapes and methods in java applet.

To get information about how to create animations in java applet.

Benefits of project:

We learned about how to insert image in java applet.

We learned about different shapes in java applet.

We learned about creating animations using java applet.

4
Created
withPDFBear.
5. LITERATURE REVIEW

Introduction to java applet

Applet is a special type of program that is embedded in the webpage to generate the dynamic
content. It runs inside the browser and works at client side.

Advantages of Applet:

There are many advantages of applet. They are as follows:

It works at client side so less response time.


Secured.
It can be executed by browsers running under many platforms, including Linux, Windows,
Mac Os etc.

Drawback of Applet
Plug in is required at client browser to execute applet.

Lifecycle of Java Applet

5
Created
withPDFBear.
Life cycle methods for Applet:

The java. applet. Applet class 4 life cycle methods and java.awt Component class provides 1
life cycle methods for an applet.

java. applet. Applet class

For creating any applet java. applet. Applet class must be inherited. It provides 4 life cycle
methods of applet.

1. public void init(): is used to initialized the Applet. It is invoked only once.
2. public void start(): is invoked after the init() method or browser is maximized. It is used to
start the Applet.
3. public void stop (): is used to stop the Applet. It is invoked when Applet is stop or browser
is minimized.
4. public void destroy(): is used to destroy the Applet. It is invoked only once.

Graphics methods used

1. drawOval

The method drawOval() is one of the methods of a Graphics object.

Syntax:

drawOval ( int x, int y, int width, int height )


Example:
drawOval (100,20,200,30);
This draws a circle or an oval that fits within the rectangle specified by the x, y, width and
height arguments. The oval is drawn inside a rectangle whose upper left hand corner is at (x,y)
and whose width and height are as specified.

2. drawRect

The drawRect method draws a rectangle outline for the given position and size.

We use the graphics context’s current color to draw the rectangle’s outline color.

Created
withPDFBear.
Syntax:

public void drawRect(int x,int y,int width,int height)

Example:

g.drawRect (50, 100, 60,200);

Parameters:

x: This is the rectangle’s x coordinate at which the rectangle is started.


y: This is the rectangle’s y coordinate at which the rectangle is started.

width This is the rectangle’s width.

height: This is the rectangle’s height.

3. drawLine

The line is the simplest shape that we can draw with the Graphics class.
The drawLine() method takes two pair of coordinates (x1, y1) and (y1, y2) as arguments and
draws a line between them.
Syntax:
g.drawLine (x1, y2, x2, y2);
Example:
g.drawLine (10, 20, 10,100);

1. public abstract void drawstring String str, int x, int y): is used to draw the specified
string.
2. public void drawRect (int x, int y, int width, int height): draws a rectangle with the
specified width and height.
3. public abstract void fillRect (int x, int y, int width, int height): is used to fill rectangle
with the default color and specified width and height.
4. public abstract void drawOval(int x, int y, int width, int height): is used to draw oval
with the specified width and height.
5. public abstract void fillOval (int x, int y, int width, int height): is used to fill oval with
the default color and specified width and height.
6. public abstract void drawLine (int x1, int y1, int x2, int y2): is used to draw line between
the points(x1, y1) and (x2, y2). 7

Created
withPDFBear.
7. public abstract boolean and drawImage(Image img, int x, int y, ImageObserver
observer): is used draw the specified image.
8. public abstract void drawArc (int x, int y, int width, int height, int startAngle, int
arcAngle): is used draw a circular or elliptical arc.

9. public abstract void fillArc(int x, int y, int width, int height, int startAngle, int
arcAngle): is used to fill a circular or elliptical arc.
10. public abstract void setColor (Color c): is used to set the graphics current color to the
specified color.
11. public abstract void setFont(Font font): is used to set the graphics current font to the
specified font.

4. drawImage() method
1. public abstract booleandrawImage(Image img, int x, int y, ImageObserver
observer): is used draw the specified image. How to get the object of Image:

The java.applet.Applet class provides getImage() method that returns the object of Image. Syntax:
1. public Image getImage(URL u, String image){}
Other required methods of Applet class to display image:

1. public URL getDocumentBase(): is used to return the URL of the document in which applet

is embedded.

2. public URL getCodeBase(): is used to return the base URL.

8
Created
withPDFBear.
6. ACTUAL PROCEDURE FOLLOWED

import java.awt.*;
import java.apple.*;
/*<applet code="Micro" width="1500" height="1700" ></applet>*/
public class Micro extends Applet
{
Image img1,img2,img3;
public void init()
{
img1=getImage(getDocumentBase(),"ho.jpeg");
img2=getImage(getDocumentBase(),"car4.png");
img3=getImage(getDocumentBase(),"m.png");
public void paint(Graphics g)
{
try
{
for(inti=0;i<800;i++)
{
g.clearRect(0,0,1500,1700);
g.drawImage(img1,30,0,this);//home
g.drawImage(img2,i,375,this);//car4
g.drawImage(img3,800-i,500,this);//car
Thread.sleep(30);
}}
catch(Exception e)
{}
}
} 9

Created
withPDFBear.
7. OUTPUT OF MICRO-PROJECT

10

Created
withPDFBear.
7. SKILL DEVELOPED/LEARNING OUTCOMES OF
MICRO-PROJECT:

1. Communication

2. Leadership

3. Team management

4. Negotiation

5. Personal organization

6. Risk management

7. Critical thinking

8. Task management
9. Solving problem

10. Error handling

11

Created
withPDFBear.
8. APPLICATIONS OF MICRO–PROJECT

Used to create animations in java applet.

Used to draw object using different graphics methods in java applet.

Applets then were mainly used for sending e-greeting cards.

Applets are used to make the website more dynamic and entertaining.

12
Created
withPDFBear.

You might also like