0% found this document useful (0 votes)
16 views

Advance Java MicroProject For Diploma 5 th sem Computer

Uploaded by

vinaymane1325
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)
16 views

Advance Java MicroProject For Diploma 5 th sem Computer

Uploaded by

vinaymane1325
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/ 9

A

Micro Project Report On

“Develop Application for mouse event using adapter class ”


IN FULFILMENT OF DIPLOMA IN COMPUTER ENGINEERING OF MSBTE
MUMBAI

Submitted by:
1. Anirudh Patil (3291)
2. Param Hiten Asar (3292)
3. Vinay Bhimrao Mane (3293)
4. Rushikesh Pandurang Kamble (3294)

Program name: Computer Engineering


Course name: Advanced Java Programming (22517)
Subject Teacher: Mrs . K. P. Ghorpade

Department of Computer Engineering

Dr. D.Y.Patil Polytechnic

Kasaba Bawada,Kolhapur

Academic Year 2024-2025


Dr. D.Y.Patil Polytechnic,Kolhapur

CERTIFICATE
This is to certify that the following students of Third Year Computer Engineering

1. Anirudh Patil (3291)


2. Param Hiten Asar (3292)
3. Vinay Bhimrao Mane (3293)
4. Rushikesh Pandurang Kamble (3294) have completed their Micro-Project work on
“DEVELOP APPLICATION FOR WINDOWEVENT USING ADAPTER CLASS”. This is
in partial fulfillment of the requirements for the award of the Diploma in Computer
Engineering and submitted to the Computer Engineering Department of Dr. D.Y.Patil
Polytechnic,Kolhapur work carried out during a period of the academic year 2024-2025
as prescribed in curriculum
of MSBTE.

Place: Kolhapur

Date:

Mrs. K. P. Ghorpade Dr.P.K.Shinde Dr.M.M.Narke


Micro-Project Guide Head of Department Principal
Develop Application for mouse event using adapter class

ACKNOWLEDGEMENT
It’s our Pleasure to express sincere and heartiest thanks to our Micro-Project guide Mrs.
K. P. Ghorpade for their valuable guidance, encouragement and support for the
accomplishment of Micro-Project.
We are also really thankful to our Principle Dr. M.M. Narke and the Head of Department Dr.
P. K. Shinde for their constant encouragement and motivation for the accomplishment of the
Micro-Project by expressing their guidelines regarding importance of Micro-Project in
developing our career.
I am thankful to Co-workers of this Micro-Project for their valuable contribution. We are
thankful to all those peoples who directly or indirectly helped us in completion of this Micro
Project.

Name of Students

1. Anirudh Patil (3291)


2. Param Hiten Asar (3292)
3. Vinay Bhimrao Mane (3293)
4. Rushikesh Pandurang Kamble (3294)

3 Dr. D.Y.Patil Polytechnic,Kolhapur


Develop application for Windowevent using adapter class

Application for mouse event using adapter class

1.0 Rationale

The goal of this project is to develop a Java application that effectively demonstrates
Windowevent handling using the Adapter Class. In Java's event-handling model, handling user
interactions like templates,or creating a window especially when implementing all event methods
can lead to verbose code. This project aims to simplify the process by leveraging the Adapter
Class, which is designed to make event handling more efficient and manageable.

2.0 Aim/Benefits of the MicroProjectAim–


Develop application for Windowevent using adapter class.

Benefits –
1. Real-World Application of Windowevent Handling.
2. Immediate Visual Feedback for Learning.
3. Hands-On Experience with Interactive Graphics.

3.0 CourseOutcomesAddressed

a) Develop Java programs using networking concepts.

4.0LiteratureReview

Sr. TitleofBook/Website Quantity


No.

1 CompleteJavareference 1

2 https://www.geeksforgeeks.org/ -

1 Dr.D.Y.Patil Polytechnic Kolhapur


Develop application for Windowevent using adapter class

5.0 ActualMethodologyFollowed

Windowevent - a WindowEvent typically refers to an event that occurs on the browser window object,
which is the global object that represents the entire browser window in which a web page is displayed.
These events are used to capture changes or interactions that happen within the browser window itself
(such as resizing, scrolling, or loading a page).

common WindowEvent types include:

1. load: Triggered when the page and all of its resources (images, scripts, etc.) have finished loading.

2. resize: Triggered when the window is resized.

3. scroll: Triggered when the window's scroll position changes.

4. beforeunload: Triggered before the page is about to be unloaded (for example, when navigating
away from the page or closing the window).

5. unload: Triggered when the page is unloaded (though it's becoming less commonly used in modern
web development).

6. focus: Triggered when the window gains focus.

7. blur: Triggered when the window loses focus.

Adapter Class:-An adapter class is a convenient way to implement an interface without having to
provide implementations for all its methods. It acts as a skeleton implementation, providing empty
method bodies. This is particularly useful when you only need to override a few methods of an
interface. By extending an adapter class, you can selectively override the methods you're interested in,
reducing the amount of boilerplate code required.

2 Dr.D.Y.Patil Polytechnic Kolhapur


Develop application for Windowevent using adapter class

6.0Resources Used

Sr. Name
No. of Specifications Qty
Resources
Systemwith
Computer 1. Windows7 ormore
1 1
System 2. Minimumstorage500 GB
3. [email protected]

2 Book CompleteJavareference 1

3 -
Website https://www.geeksforgeeks.org/

https://www.javatpoint.com/
4 Website -

7.0Source Code

import java.awt.*;
import java.awt.event.*;

public class WindowEventExample {


public static void main(String[] args) {
// Create a frame
Frame frame = new Frame("WindowEvent Example using WindowAdapter");

// Set frame properties


frame.setSize(400, 300);
frame.setLayout(new FlowLayout());

// Add a label to the frame


Label label = new Label("Close the window to trigger an event.");
frame.add(label);

3 Dr.D.Y.Patil Polytechnic Kolhapur


Develop application for Windowevent using adapter class

// Add a WindowAdapter to handle window events


frame.addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(WindowEvent
e) { // Action when the window is closing
System.out.println("Window is closing...");
frame.dispose(); // Close the frame
}
});

// Make the frame visible


frame.setVisible(true);
}
}

4 Dr.D.Y.Patil Polytechnic Kolhapur


Develop application for Windowevent using adapter class

Output –

5 Dr.D.Y.Patil Polytechnic Kolhapur


Develop application for Windowevent using adapter class

8.0SkillDeveloped/Learning outcomeofthis Micro-Project

a) Analyzed andimplemented Windowevent handling programming.

b) GUI Design and User Interaction Skills.

c) Object-Oriented Programming and Code Modularity

9.0Applicationofthis Micro-Project

1. Interactive Whiteboard or Annotation Tool .


2. Prototype for Graphics and Design Software
3. Educational Tool for Learning Graphics Programming

6 Dr.D.Y.Patil Polytechnic Kolhapur

You might also like