0% found this document useful (0 votes)
316 views19 pages

AJP Microproject

This document is a micro project report on an ID Card Generator System created by 4 students at Sandip Polytechnic in Nashik, Maharashtra, India. The project aims to learn advanced Java programming concepts like GUI, Swings, and components by developing a program to generate ID cards. It collects user input for fields like name, class, address, phone number and generates the ID card. The report discusses the rationale, aims, methodology, resources used, and includes the Java code and output of the program.

Uploaded by

Saloni Patil
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)
316 views19 pages

AJP Microproject

This document is a micro project report on an ID Card Generator System created by 4 students at Sandip Polytechnic in Nashik, Maharashtra, India. The project aims to learn advanced Java programming concepts like GUI, Swings, and components by developing a program to generate ID cards. It collects user input for fields like name, class, address, phone number and generates the ID card. The report discusses the rationale, aims, methodology, resources used, and includes the Java code and output of the program.

Uploaded by

Saloni Patil
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/ 19

A

Micro Project Report


On

“ID Card Generator System”

Submitted by
1. Saloni Nivrutti Patil
2. Tanishka Kiran Chopadkar
3. Devang Jittendra Bhattad
4. Divya Dattatray Rahane

Under the Guidance of


Prof.R.C.Mahajan
In the Partial Fulfilment of Fifth Semester of Diploma in
Computer Engineering

Department of Computer Engineering


Sandip Polytechnic
Mahiravani, Nashik - 422213

Affiliated to

Maharashtra State
Board of Technical Education

Academic Year 2023-24


Maharashtra State
Board of Technical Education

Certificate

This is to certify that Ms. Saloni Nivrutti Patil with Roll No-05 has successfully completed Micro-project in course
Advanced Java Programming(22517) for the academic year 2023-24 as prescribed in the 'Assessment Manual'
during his/her tenure of completing fifth Semester of Diploma Program in Computer Engineering from institute,
Sandip Polytechnic with institute code 1167.

Place : Nashik Enrollment No: 2111670129

Date: Exam Seat No:

Course Teacher Head of the Department Head of the Institute


Maharashtra State
Board of Technical Education

Certificate

This is to certify that Ms. Tanishka Kiran Chopadkar with Roll No-12 has successfully completed Micro-project
in course Advanced Java Programming(22517) for the academic year 2023-24 as prescribed in the 'Assessment
Manual' during his/her tenure of completing fifth Semester of Diploma Program in Computer Engineering from
institute, Sandip Polytechnic with institute code 1167.

Place : Nashik Enrollment No: 2111670139

Date: Exam Seat No:

Course Teacher Head of the Department Head of the Institute


Maharashtra State
Board of Technical Education

Certificate

This is to certify that Mr. Devang Jittendra Bhattad with Roll No-41 has successfully completed Micro-project in
course Advanced Java Programming(22517) for the academic year 2023-24 as prescribed in the 'Assessment
Manual' during his/her tenure of completing fifth Semester of Diploma Program in Computer Engineering from
institute, Sandip Polytechnic with institute code 1167.

Place : Nashik Enrollment No: 2111670183

Date: Exam Seat No:

Course Teacher Head of the Department Head of the Institute


Maharashtra State
Board of Technical Education

Certificate

This is to certify that Ms. Divya Dattatray Rahane with Roll No-47 has successfully completed Micro-project in
course Advanced Java Programming(22517) for the academic year 2023-24 as prescribed in the 'Assessment
Manual' during his/her tenure of completing fifth Semester of Diploma Program in Computer Engineering from
institute, Sandip Polytechnic with institute code 1167.

Place : Nashik Enrollment No: 2111670191

Date: Exam Seat No:

Course Teacher Head of the Department Head of the Institute


Annexure – I

Micro Project Proposal


“ID Card Generator System”

1.0 Aims/Benefits of the Micro-Project:


To learn/understand the concepts of the Advanced Java programming and apply at the places
required. The main aim of this micro project is to understand the Advanced Java code logic
designed for performing ID Card Generator system.

2.0 Course Outcomes Addressed:


1. Develop programs using GUI Framework (AWT and Swing).
2. Handel events of AWT and Swing components.
3. Develop a Java program using networking concepts.
4. Develop a Java program using Servlets.

3.0 Proposed Methodology:


After choosing the topic for our micro-project ,we decided to collect some information related to
our project topic and do some research on it. Based on that information we would be developing
some logic for carrying out different various functions related to ID Card Generator system.

4.0 Action Plan:

Sr. Planned Planned Name of Responsible Team


Details of Activity
No Start Date Finish Date Members
1 Topic Discussion & Selection
2 Aim/Benefits & Importance
3 Resources Required
4 Analysis of Collected Data 1. Saloni Nivrutti Patil
2. Tanishka Kiran Chopadkar
5 Design & Editing of data 3. Devang Jittendra Bhattad
4. Divya Dattatray Rahane
6 Compilation of Report
7 Compilation of Presentation
8 Presentation of Seminar
9 Final Submission
5.0 Resources Required:

SrNo Name of Resource/Material Specification Qty. Remarks


1 Hardware Resource Intel i3,2GB RAM 1 -
2 Software Resource Turbo C/C++ 1 -
3 Any Other Resource Internet 1 -

Name of Team Members with Roll No:

Roll No Name of Team Members


5 Patil Saloni Nivrutti
12 Chopadkar Tanishka Kiran
41 Bhattad Devang Jittendra
47 Rahane Divya Dattatray

Name & Signature of Course Teacher


(Prof.R.C.Mahajan)
Annexure – II

Micro Project Report


1.0 Rational :
The basic application for Generating ID card i.e. in that user can generate his/her ID card.
This application simply generates the ID card of any person by taking some from user.

2.0 Aims/Benefits of the Micro-Project:


To learn/understand the concepts of the Advanced Java programming i.e. the concepts of GUI,
Swings, Interfaces and Components etc., The main aim of this micro project is to understand the
Advanced Java code logic designed for performing ID Card Generator system.

3.0 Course Outcomes Achieved:


1. Develop programs using GUI Framework (AWT and Swing).
2. Handel events of AWT and Swing components.
3. Develop a Java program using networking concepts.
4. Develop a Java program using Servlets.

4.0 Literature Review:


After choosing the topic for our micro-project ,we decided to collect some information related to
our project topic and do some research on it. Based on that information we would be developing
some logic for carrying out different various functions related to ID Card Generator system.
5.0 Actual Methodology Followed :

After the topic for our project was selected, we segregated the work load as follows

1. Researching and collecting the required information was done by our team members
Tanishka , Divya , Devang and Saloni.
2. Arrangement of this work in appropriate manner and cross checking of the was done by Devang
and Tanishka.
3. Compiling this work and formatting of the report was done by our team members Divya and
Saloni.
6.0Actual Resources Used:
Sr
Name of Resource/Material Specification Qty. Remarks
No
1 Hardware Resource Intel i3,2GB RAM 1 -
2 Software Resource JDK 1.6 1 -
3 Any Other Resource Internet 1 -

7.0 CODE AND OUTPUT:


 Program Code:
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
public class IDCardGenerator extends JFrame implements ActionListener {
private JTextField idField, nameField, classField, addressField, phoneField;
private JLabel idLabel, nameLabel, classLabel, addressLabel, phoneLabel;
private JButton generateButton, insertPhotoButton;
private BufferedImage photo;
private String collegeName = ""; // Initialize college name as empty
public IDCardGenerator() {
setTitle("ID Card Generator");
setSize(400, 500);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setLayout(new BorderLayout());
JPanel inputPanel = new JPanel();
inputPanel.setLayout(new GridLayout(6, 2));
idLabel = new JLabel("ID:");
idField = new JTextField(20);
nameLabel = new JLabel("Name:");
nameField = new JTextField(20);
classLabel = new JLabel("Class:");
classField = new JTextField(20);
addressLabel = new JLabel("Address:");
addressField = new JTextField(20);
phoneLabel = new JLabel("Phone:");
phoneField = new JTextField(20);
inputPanel.add(idLabel);
inputPanel.add(idField);

inputPanel.add(nameLabel);
inputPanel.add(nameField);
inputPanel.add(classLabel);
inputPanel.add(classField);
inputPanel.add(addressLabel);
inputPanel.add(addressField);
inputPanel.add(phoneLabel);
inputPanel.add(phoneField);

insertPhotoButton = new JButton("Insert Photo");


insertPhotoButton.addActionListener(this);

inputPanel.add(insertPhotoButton);

generateButton = new JButton("Generate ID Card");


generateButton.addActionListener(this);
generateButton.setPreferredSize(new Dimension(150, 30)); // Set the button size

JPanel buttonPanel = new JPanel();


buttonPanel.add(generateButton);

add(inputPanel, BorderLayout.NORTH);
add(buttonPanel, BorderLayout.CENTER);

setVisible(true);
}

public void actionPerformed(ActionEvent e) {


if (e.getSource() == insertPhotoButton) {
JFileChooser fileChooser = new JFileChooser();
int returnValue = fileChooser.showOpenDialog(null);
if (returnValue == JFileChooser.APPROVE_OPTION) {
try {
File file = fileChooser.getSelectedFile();
photo = ImageIO.read(file);
} catch (IOException ex) {
ex.printStackTrace();
}
}
} else if (e.getSource() == generateButton) {
String id = idField.getText();
String name = nameField.getText();
String className = classField.getText();
String address = addressField.getText();
String phone = phoneField.getText();

// Store the college name, or you can set it directly in the code
collegeName = "College Name";

// Create and display the ID card


generateIDCard(id, name, className, address, phone);
}
}

private void generateIDCard(String id, String name, String className, String address, String
phone) {
JFrame idCardFrame = new JFrame("ID Card");
idCardFrame.setSize(300, 400);
idCardFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);

JPanel idCardPanel = new JPanel();


idCardPanel.setLayout(new BoxLayout(idCardPanel, BoxLayout.Y_AXIS)); // Center-align
content

JLabel collegeNameLabel = new JLabel("Sandip Foundation");


collegeNameLabel.setFont(new Font("SansSerif", Font.BOLD, 18));
collegeNameLabel.setAlignmentX(Component.CENTER_ALIGNMENT); // Center-align
college name
idCardPanel.add(collegeNameLabel);

// Display the photo on the ID card at the top with a specific size
if (photo != null) {
BufferedImage scaledPhoto = new BufferedImage(120, 150,
BufferedImage.TYPE_INT_ARGB);
Graphics2D g = scaledPhoto.createGraphics();
g.drawImage(photo, 0, 0, 120, 150, null);
g.dispose();

JLabel photoOnID = new JLabel(new ImageIcon(scaledPhoto));


photoOnID.setAlignmentX(Component.CENTER_ALIGNMENT); // Center-align the
image
idCardPanel.add(photoOnID);
}

JLabel idLabel = new JLabel("ID: " + id);

JLabel nameLabel = new JLabel("Name: " + name);


JLabel classLabel = new JLabel("Class: " + className);

JLabel addressLabel = new JLabel("Address: " + address);


JLabel phoneLabel = new JLabel("Phone: " + phone);
// Center-align text
idLabel.setAlignmentX(Component.CENTER_ALIGNMENT);
nameLabel.setAlignmentX(Component.CENTER_ALIGNMENT);
classLabel.setAlignmentX(Component.CENTER_ALIGNMENT);
addressLabel.setAlignmentX(Component.CENTER_ALIGNMENT);
phoneLabel.setAlignmentX(Component.CENTER_ALIGNMENT);

idCardPanel.add(idLabel);
idCardPanel.add(nameLabel);
idCardPanel.add(classLabel);
idCardPanel.add(addressLabel);
idCardPanel.add(phoneLabel);

idCardFrame.add(idCardPanel);
idCardFrame.setVisible(true);
}

public static void main(String[] args) {


SwingUtilities.invokeLater(() -> new IDCardGenerator());
}
}

 Output of The Above Program:


6.0 Skill Developed:

 Develop advanced java program using GUI and Swings.


 Understand components in advanced java programming.
 Develop program using applet and servlet.
 Develop program for handling EventListeners.
 Develop program using Database.
 Develop java program using networking concepts.

Name & Signature of Course Teacher


(Prof.R.C.Mahajan)
 Concepts that we used in Advanced Java :
Components:
All the elements like the button, text fields, scroll bars, etc. are called components. In Java AWT, there are classes
for each component as shown in above diagram. In order to place every component in a particular position on a
screen, we need to add them to a container.

Container:
The Container is a component in AWT that can contain another components like buttons, textfields, labels etc. The
classes that extends Container class are known as container such as Frame

Java AWT Label:


The object of the Label class is a component for placing text in a container. It is used to
display a single line of read only text. The text can be changed by a programmer but a user
cannot edit it directly.

Java AWT Button:


A button is basically a control component with a label that generates an event when pushed.
The Button class is used to create a labeled button that has platform independent
implementation. The application result in some action when the button is pushed.

Java JLabel:
The object of JLabel class is a component for placing text in a container. It is used to
display a single line of read only text. The text can be changed by an application but a user
cannot edit it directly. It inherits JComponent class.

Java JButton:
The JButton class is used to create a labeled button that has platform independent
implementation. The application result in some action when the button is pushed. It inherits
AbstractButton class.

Java JPanel:
The JPanel is a simplest container class. It provides space in which an application can attach
any other component. It inherits the JComponents class.

Java JTextField:
The object of a JTextField class is a text component that allows the editing of a single line
text. It inherits JTextComponent class.
Annexure – III

Micro Project Evaluation Sheet

Name of Student: Saloni Nivrutti Patil Enrollment No: 2111670129


Name of Program: Computer Engineering Semester: fifth
Course Title: Advanced Java Programing Course Code: 22517
Title of Micro Project: ID card Generator System

Course Outcomes Achieved:


1.Develop programs using GUI Framework (AWT and Swing).
2.Handel events of AWT and Swing components.
3.Develop a Java program using networking concepts.
4.Develop a Java program using Servlets.

Poor Average Good Excellent


Sr Sub
Characteristic to be Assessed Marks Marks Marks Marks
No Total
(1-3) (4-5) (6-8) (9-10)
(A) Process and Product Assessment (6 Marks)
1 Relevance to the Course
2 Literature Review/Information Collection
3 Completion of the Targets per Project Proposal
4 Analysis of Data & Representation
5 Quality of Prototype/Model
6 Report Preparation
(B) Individual Presentation/Viva (4Marks)
7 Presentation
8 Viva

(A) (B)
Total Marks
Process and Product Assessment Individual Presentation/Viva
(10 Marks)
(6 Marks) (4 Marks)

Comments/Suggestions about Teamwork/Leadership/Inter-personal Communication (if any)


…………………………………..……………………………………………………………………………

Name &Designation of Course Teacher


(Prof.R.C.Mahajan)
Annexure – III

Micro Project Evaluation Sheet


Name of Student: Tanishka Kiran Chopadkar Enrollment No: 2111670139
Name of Program: Computer Engineering Semester: fifth
Course Title: Advanced Java Programing Course Code: 22517
Title of Micro Project: ID card Generator System

Course Outcomes Achieved:


1.Develop programs using GUI Framework (AWT and Swing).
2.Handel events of AWT and Swing components.
3.Develop a Java program using networking concepts.
4.Develop a Java program using Servlets.

Poor Average Good Excellent


Sr Sub
Characteristic to be Assessed Marks Marks Marks Marks
No Total
(1-3) (4-5) (6-8) (9-10)
(A) Process and Product Assessment (6 Marks)
1 Relevance to the Course
2 Literature Review/Information Collection
3 Completion of the Targets per Project Proposal
4 Analysis of Data & Representation
5 Quality of Prototype/Model
6 Report Preparation
(B) Individual Presentation/Viva (4Marks)
7 Presentation
8 Viva

(A) (B)
Total Marks
Process and Product Assessment Individual Presentation/Viva
(10 Marks)
(6 Marks) (4 Marks)

Comments/Suggestions about Teamwork/Leadership/Inter-personal Communication (if any)


…………………………………..……………………………………………………………………………

Name &Designation of Course Teacher


(Prof.R.C.Mahajan)
Annexure – III

Micro Project Evaluation Sheet

Name of Student: Devang Jittendra Bhattad Enrollment No: 2111670183


Name of Program: Computer Engineering Semester: fifth
Course Title: Advanced Java Programing Course Code: 22517
Title of Micro Project: ID card Generator System

Course Outcomes Achieved:


1.Develop programs using GUI Framework (AWT and Swing).
2.Handel events of AWT and Swing components.
3.Develop a Java program using networking concepts.
4.Develop a Java program using Servlets.

Poor Average Good Excellent


Sr Sub
Characteristic to be Assessed Marks Marks Marks Marks
No Total
(1-3) (4-5) (6-8) (9-10)
(A) Process and Product Assessment (6 Marks)
1 Relevance to the Course
2 Literature Review/Information Collection
3 Completion of the Targets per Project Proposal
4 Analysis of Data & Representation
5 Quality of Prototype/Model
6 Report Preparation
(B) Individual Presentation/Viva (4Marks)
7 Presentation
8 Viva

(A) (B)
Total Marks
Process and Product Assessment Individual Presentation/Viva
(10 Marks)
(6 Marks) (4 Marks)

Comments/Suggestions about Teamwork/Leadership/Inter-personal Communication (if any)


…………………………………..……………………………………………………………………………

Name &Designation of Course Teacher


(Prof.R.C.Mahajan)
Annexure – III

Micro Project Evaluation Sheet

Name of Student: Divya Dattatray Rahane Enrollment No: 2111670191


Name of Program: Computer Engineering Semester: fifth
Course Title: Advanced Java Programing Course Code: 22517
Title of Micro Project: ID card Generator System

Course Outcomes Achieved:


1.Develop programs using GUI Framework (AWT and Swing).
2.Handel events of AWT and Swing components.
3.Develop a Java program using networking concepts.
4.Develop a Java program using Servlets.

Poor Average Good Excellent


Sr Sub
Characteristic to be Assessed Marks Marks Marks Marks
No Total
(1-3) (4-5) (6-8) (9-10)
(A) Process and Product Assessment (6 Marks)
1 Relevance to the Course
2 Literature Review/Information Collection
3 Completion of the Targets per Project Proposal
4 Analysis of Data & Representation
5 Quality of Prototype/Model
6 Report Preparation
(B) Individual Presentation/Viva (4Marks)
7 Presentation
8 Viva

(A) (B)
Total Marks
Process and Product Assessment Individual Presentation/Viva
(10 Marks)
(6 Marks) (4 Marks)

Comments/Suggestions about Teamwork/Leadership/Inter-personal Communication (if any)


…………………………………..……………………………………………………………………………

Name &Designation of Course Teacher


(Prof.R.C.Mahajan)

You might also like