AJP Microproject
AJP Microproject
AJP Microproject
FIFTH SEMESTER
(Year: 2024-25)
Micro Project
Advanced Java Programming
Submitted By:
1
MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION, MUMBAI
MICRO PROJECT
Progress Report / Weekly Report
Sign of
Week Duration
Date Work / Activity Performed the
No in Hrs.
Faculty
1
10
11
12
13
14
15
2
Teacher Evaluation Sheet for Micro Project
CO d: -
CO e: -
CO f: -
Marks:-
Signature: _______________________
3
Loknete Ma. Hanmantrao Patil Charitable Trust’s
Adarsh Institute of Technology & Research Centre Vita,
CERTIFICATE
This is to certify that the micro project report entitled
For Fifth Semester of Diploma in Computer Technology of course Advanced Java Programming
(22517) for academic year 2024-25 as per MSBTE, Mumbai curriculum of ‘I’ scheme.
DIPLOMA OF ENGINEERING
(Computer Technology)
SUBMITTED TO
MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION MUMBAI
ACADEMIC YEAR 2024-25
4
ACKNOWLEDGEMENT
I am extremely thankful to Principal Dr. P. S. Patil for this motivation and providing me
infrastructural facilities to work in, without which this work would not have been possible.
I would like to express my gratitude to all my colleagues for their support, co-operation
and fruitful discussions on diverse seminar topics and technical help.
5
Index
Sr. No. Content Page No.
1.0 Rationale 9
6
PART A - Micro-Project Proposal
Event Handling in Java: Handling user input in GUI applications, particularly with mouse
and keyboard actions, is critical in game development. The project uses MouseAdapter to
manage clicks on the board, demonstrating event-driven programming.
7
6.0 set password for quiz ,set
timer for the exam and
types of examination
depends on the category.
As a user student can
attend
7.0 those exams. The student
user can submit the test
after finish the exam and
get results through mail on
there email id(it is
8.0 implemented by mail
services in java). A teacher
and admin user can get
the history of his exam
results. Admin also can
9.0 check the complete
activity of all the users and
8
teacher users. Like exams
and results.
10.0 A Quiz Management
System In Java is to
perform the examination
for the student where an
teacher can add questions,
11.0 set password for quiz ,set
timer for the exam and
types of examination
depends on the category.
As a user student can
attend
12.0 those exams. The student
user can submit the test
after finish the exam and
get results through mail on
there email id(it is
9
13.0 implemented by mail
services in java). A teacher
and admin user can get
the history of his exam
results. Admin also can
14.0 check the complete
activity of all the users and
teacher users. Like exams
and results.
15.0 A Quiz Management
System In Java is to
perform the examination
for the student where an
teacher can add questions,
16.0 set password for quiz ,set
timer for the exam and
types of examination
depends on the category.
10
As a user student can
attend
17.0those exams. The student
user can submit the test
after finish the exam and
get results through mail on
there email id(it is
18.0implemented by mail
services in java). A teacher
and admin user can get
the history of his exam
results. Admin also can
19.0check the complete
activity of all the users and
teacher users. Like exams
and results.
20.0A Quiz Management
System In Java is to
11
perform the examination
for the student where an
teacher can add questions,
21.0 set password for quiz ,set
timer for the exam and
types of examination
depends on the category.
As a user student can
attend
22.0 those exams. The student
user can submit the test
after finish the exam and
get results through mail on
there email id(it is
23.0 implemented by mail
services in java). A teacher
and admin user can get
12
the history of his exam
results. Admin also can
24.0 check the complete
activity of all the users and
teacher users. Like exams
and results.
25.0 Quiz Management System
In Java is to perform the
examination for the
student where an teacher
can add questions,
26.0 set password for quiz ,set
timer for the exam and
types of examination
depends on the category.
As a user student can
attend
13
27.0those exams. The student
user can submit the test
after finish the exam and
get results through mail on
there email id(it is
28.0implemented by mail
services in java). A teacher
and admin user can get
the history of his exam
results. Admin also can
29.0check the complete
activity of all the users and
teacher users. Like exams
and results
30.0Quiz Management System
In Java is to perform the
examination for the
14
student where an teacher
can add questions,
31.0 set password for quiz ,set
timer for the exam and
types of examination
depends on the category.
As a user student can
attend
32.0 those exams. The student
user can submit the test
after finish the exam and
get results through mail on
there email id(it is
33.0 implemented by mail
services in java). A teacher
and admin user can get
the history of his exam
results. Admin also can
15
34.0 check the complete
activity of all the users and
teacher users. Like exams
and results
35.0 Quiz Management System
In Java is to perform the
examination for the
student where an teacher
can add questions,
36.0 set password for quiz ,set
timer for the exam and
types of examination
depends on the category.
As a user student can
attend
37.0 those exams. The student
user can submit the test
after finish the exam and
16
get results through mail on
there email id(it is
38.0 implemented by mail
services in java). A teacher
and admin user can get
the history of his exam
results. Admin also can
39.0 check the complete
activity of all the users and
teacher users. Like exams
and results
40.0 A Quiz Management
System In Java is to
perform the examination
for the student where an
teacher can add questions,
41.0 set password for quiz ,set
timer for the exam and
17
types of examination
depends on the category.
As a user student can
attend
42.0those exams. The student
user can submit the test
after finish the exam and
get results through mail on
there email id(it is
43.0implemented by mail
services in java). A teacher
and admin user can get
the history of his exam
results. Admin also can
44.0check the complete
activity of all the users and
teacher users. Like exams
and result
18
45.0 A Quiz Management
System In Java is to
perform the examination
for the student where an
teacher can add questions,
46.0 set password for quiz ,set
timer for the exam and
types of examination
depends on the category.
As a user student can
attend
47.0 those exams. The student
user can submit the test
after finish the exam and
get results through mail on
there email id(it is
48.0 implemented by mail
services in java). A teacher
19
and admin user can get
the history of his exam
results. Admin also can
49.0 check the complete
activity of all the users and
teacher users. Like exams
and result
50.0 A Quiz Management
System In Java is to
perform the examination
for the student where an
teacher can add questions,
51.0 set password for quiz ,set
timer for the exam and
types of examination
depends on the category.
As a user student can
attend
20
52.0those exams. The student
user can submit the test
after finish the exam and
get results through mail on
there email id(it is
53.0implemented by mail
services in java). A teacher
and admin user can get
the history of his exam
results. Admin also can
54.0check the complete
activity of all the users and
teacher users. Like exams
and result
55.0 Aim of the Micro-Pro
Student records
are often viewed as
paperwork produced for
the education
21
bureaucracy.
However, a well-
designed student
record system, whether
using paper documents
or
automated systems,
yields many benefits.
The most
important of these is
the ability to report
information for decision
making
about individual
students, schools,
22
programs, and school
districts.
A second benefit,
particularly with
automated systems, is
efficiency in processing
and
exchanging student
records among schools.
Student records
are often viewed as
paperwork produced for
the education
bureaucracy.
However, a well-
designed student
23
record system, whether
using paper documents
or
automated systems,
yields many benefits.
The most
important of these is
the ability to report
information for decision
making
about individual
students, schools,
programs, and school
districts.
A second benefit,
particularly with
24
automated systems, is
efficiency in processing
and
exchanging student
records among such
5.0 Proposed Methodology
5) Analysis of data.
Sr.
Name of Resource/ Material Specifications Quantity Remark
No.
25
3 Internet Any 1
Planned Name of
Sr. Planned
Details of activity Finish Responsible Team
No. start date
date Members
1 Project Proposal
2 Data Collection & Analysis
4 Preparation of Report
26
Game Design: Many board games, including chess, require an efficient way to represent
the state of the game (e.g., the position of pieces). This project uses arrays to store and
update piece positions, reflecting changes visually.
Artificial Intelligence in Chess: Modern chess applications often incorporate AI to play
against the user. While this project focuses on the GUI aspect, many chess games
eventually integrate AI to enhance gameplay.
Work: Collect information and discuss with group members about proposal.
Sr.
Name of Resource/ Material Specifications Quantity Remark
No.
3 Internet Any 1
import javax.swing.*;
import java.awt.*;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
27
public class ChessBoardGame extends JFrame {
private static final int BOARD_SIZE = 8;
private JPanel[][] squares = new JPanel[BOARD_SIZE][BOARD_SIZE];
private JLabel[][] pieces = new JLabel[BOARD_SIZE][BOARD_SIZE];
private Point selectedSquare = null;
public ChessBoardGame() {
setTitle("Chess Board Game");
setSize(600, 600);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setLayout(new GridLayout(BOARD_SIZE, BOARD_SIZE));
initializeBoard();
initializePieces();
}
28
if (initialBoard[row][col] != null) {
String piece = initialBoard[row][col];
pieces[row][col] = new JLabel(getPieceUnicode(piece, row));
pieces[row][col].setFont(new Font("Arial", Font.PLAIN, 40));
pieces[row][col].setHorizontalAlignment(SwingConstants.CENTER);
squares[row][col].add(pieces[row][col]);
}
}
}
}
@Override
public void mousePressed(MouseEvent e) {
if (selectedSquare == null) {
// Select the piece if there is one
if (pieces[row][col] != null) {
selectedSquare = new Point(row, col);
29
squares[row][col].setBackground(Color.YELLOW); // Highlight selected square
}
} else {
// Move the piece to the new square
Point destination = new Point(row, col);
movePiece(selectedSquare, destination);
selectedSquare = null; // Deselect after move
}
}
}
pieces[to.x][to.y] = piece;
squares[to.x][to.y].add(piece); // Place piece on new square
revalidate();
repaint();
}
import
java.awt.event.ActionEvent;
30
import
java.awt.event.ActionListen
er;
import
javax.swing.ButtonGroup;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import
javax.swing.JOptionPane;
import
javax.swing.JRadioButton;
class OnlineTest extends
JFrame implements
ActionListener {
private static final long
serialVersionUID = 1L;
31
JLabel label;
JRadioButton radioButton[]
= new JRadioButton[5];
JButton btnNext,
btnBookmark;
import
java.awt.event.ActionEvent;
import
java.awt.event.ActionListen
er;
import
javax.swing.ButtonGroup;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import
javax.swing.JOptionPane;
32
import
javax.swing.JRadioButton;
class OnlineTest extends
JFrame implements
ActionListener {
private static final long
serialVersionUID = 1L;
JLabel label;
JRadioButton radioButton[]
= new JRadioButton[5];
JButton btnNext,
btnBookmark;
import
java.awt.event.ActionEvent;
import
java.awt.event.ActionListen
er;
33
import
javax.swing.ButtonGroup;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import
javax.swing.JOptionPane;
import
javax.swing.JRadioButton;
class OnlineTest extends
JFrame implements
ActionListener {
private static final long
serialVersionUID = 1L;
JLabel label;
JRadioButton radioButton[]
= new JRadioButton[5];
34
JButton btnNext,
btnBookmark;
import
java.awt.event.ActionEvent;
import
java.awt.event.ActionListen
er;
import
javax.swing.ButtonGroup;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import
javax.swing.JOptionPane;
import
javax.swing.JRadioButton;
35
class OnlineTest extends
JFrame implements
ActionListener {
private static final long
serialVersionUID = 1L;
JLabel label;
JRadioButton radioButton[]
= new JRadioButton[5];
JButton btnNext,
btnBookmark;
import
java.awt.event.ActionEvent;
import
java.awt.event.ActionListen
er;
import
javax.swing.ButtonGroup;
36
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import
javax.swing.JOptionPane;
import
javax.swing.JRadioButton;
class OnlineTest extends
JFrame implements
ActionListener {
private static final long
serialVersionUID = 1L;
JLabel label;
JRadioButton radioButton[]
= new JRadioButton[5];
JButton btnNext,
btnBookmark;
Output:
37
Image-1
Image- 2
Event Handling: Managing user interactions via mouse events, such as selecting and
moving pieces on the board.
Game Logic: Implementing basic game mechanics, such as board layout, piece
positioning, and movement.
38
Problem-Solving: Learning to manage data structures for game states and design
solutions for visual representation and user interaction.
Enhanced UI Design: Improve the visual aesthetics of the board and pieces, possibly
with custom graphics or animations.
*********
39