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

AJP Microproject Final

The document outlines a microproject on a Student Record Management System developed using Java, specifically utilizing the Swing module for a GUI interface. It details the project's aim to streamline student management processes in educational institutions, and includes information about the project's team members, guide, and a weekly progress report. Additionally, it provides an overview of the system's features, modules, and technical requirements, along with a sample code for the login module.
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)
4 views

AJP Microproject Final

The document outlines a microproject on a Student Record Management System developed using Java, specifically utilizing the Swing module for a GUI interface. It details the project's aim to streamline student management processes in educational institutions, and includes information about the project's team members, guide, and a weekly progress report. Additionally, it provides an overview of the system's features, modules, and technical requirements, along with a sample code for the login module.
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/ 36

2022

A MICROPROJECT ON STUDENT RECORD


MANAGEMENT SYSTEM USING JAVA

Project Guide : AMOL CHAUDHARI SIR


MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION
GOVERNMENT POLYTECHNIC, JALGAON (0018/1567)

Program Name and Code : Computer Engineering CO5I


Course Name and Code : Advanced Java Programming
(22517)
Academic Year : 2022-23
Semester : Fifth

A MICRO PROJECT ON STUDENT RECORD MANAGEMENT


Submitted in 2022-23 by the group of CO-A Students

Sr. Roll
Name of Student Enrollment No. Seat No.
No. No.
1. 29 Viraj Vinod Chaudhari 2000180483

2. 34 Puja Madan Chaudhari 2000180491

3. 38 Siddhesh Avinash Chaudhari 2000180495

4. 40 Chinmay Pravin Karodpati 2000180497

Project Guide : AMOL CHAUDHARI SIR


MAHARASHTRA STATE BOARD OF TECHNICAL
EDUCATION

Certificate

This is to certify that Ms./Mr. Viraj Chaudhari, Puja Chaudhari, Siddhesh


Chaudhari and Chinmay Karodpati Roll No. 29, 34, 38, 40 of 5th Semester of
Diploma in Computer Engineering of Institute, Government Polytechnic, Jalgaon
(Code:0018/1567) has completed the Micro Project satisfactorily in the Subject –
Advanced java programming (22517) for the Academic Year 2022-2023 as prescribed
in the curriculum.

Place: Jalgaon Enrollment No : 2000180483,491,495, 497


Date: / / 2021 Exam. Seat No:

Subject Teacher Head of the Department Principal

Seal of
Instituti
on
GOVTERNMENT POLYTECHNIC,
JALGAON

-SUBMISSION-
I Viraj Chaudhari, Puja Chaudhari, Siddhesh Chaudhari and
Chinmay Karodpati Roll No. 29, 34, 38, 40 Seat No. ____________________
as a student of 5th Semester 2022-2023 of the Programme humbly submit that
I have completed from time to time the Practical/Micro-Project work as
described in this report by my own skills and study between the period
from______________________to ________ As per instructions/guidance of
Amol Chaudhari Sir

And that following students were associated with me for this work, however,
quantum of my contribution has been approved by the Lecturer.

And that I have not copied the report on its any appreciable part from any other
literature in contravention of the academic ethics.

Date: / / Signature of Student


WEEKLY PROGRESS REPORT

SR.NO. WEEK ACTIVITY PERFORMED SIGN OF GUIDE DATE


st
1 1 Discussion and finalization of
topic

2 2nd Preparation and submission of


Abstract
3 3rd Literature Review

4 4th Collection of Data

5 5th Collection of Data

6 6th Discussion and outline of Content

7 7th Formulation of Content

8 8th Editing and proof Reading of


Content
9 9th Compilation of Report and
Presentation
10 10th Seminar

11 11th Viva voce

12 12th Final submission of Micro Project

Sign of the student Sign of the faculty


Micro-Project
Report
ITLE OF MICRO PROJECT: STUDENT RECOED
MANAGEMNT SYSTEM

Brief Description
t’s a GUI-based project used with the Swing module to organize all elements
that work under Student management system

Prerequisite
Any laptop, computer or mobile phones hardware device capable of
supporting JDK

Aim of Microproject

The goal of performing this microproject was a attempt to make the process of
managing students quit convenient

Course outcomes Integrated

a. Develop programming using GUI framework like Swing and AWT

b. Handle events of AWT and Swing components

c. Develop java program using database

d. Develop program to handle event in JAVA


INTRODUCTION

Schools and universities serve as the basis of knowledge as well as an


educational body on which students rely. As a result, they must maintain a robust
student database in order to store all current records and readily exchange
information with students.
Most schools and universities rely on a sophisticated software program known as
a ‘Student Management System (SMS)‘ to manage all of their student data and
administrative procedures such as tests, attendance, and other activities.
The use of the Student Management System has improved the performance and
efficiency of the education industry in recent years. With its well-
organized, simple, and dependable online school management software, this
application has effectively taken over the admin department’s task.

Student Management System Project in Java: Project


Overview
Project Name: Student Management System Project in Java

It’s a GUI-based project used with the Swing module to organize all t
Abstract elements that work under library management.

Language/s Used: Java

IDE Text pad

Java version
(Recommended): Java JDK 1.8

Database: MySQL

Type: Desktop Application

Recommended for Schools and Colleges


Why are we creating the Student Management System
Project in Java?
Java is an object-oriented programming language that is similar to C++ but has
additional capabilities such as free access and can run on all systems. Some of
the distinguishing characteristics that make it the finest alternative for such
software development are as follows:

 Easy to understand: It does not have issues like operator overloading


or pointers, which might make the job more difficult.

 Object-oriented: An object-oriented program is thought to have a


state and behavior and to provide output accordingly.

 Security: To prevent data manipulation from untrusted sources, it runs


the application in the sandbox and transforms it to bytecode after
compilation.

Features of Student Management System Project in Java

Improves students’ overall performance: Monitoring your pace is


one of the mantras for improving academic achievement. As a result,
with the aid of school administration software, students may focus
their time on academics and other chores rather than keeping track of
their performance, which is handled by SMS software.

 It assists in the streamlining of all tasks: It was previously difficult


for instructors to keep track of all the activities and assignments
assigned to each student, which were occasionally neglected. However,
thanks to school administration software, life has gotten much more
manageable. Teachers may simply manage, monitor, and track the
performance of each student using its efficient dashboard, and finally
take suitable actions to finish it.

 Better Communication: When a teacher provides a lesson during a


physical batch, it is possible that some pupils will not fully get the
topic and may ask questions. However, with such power, it becomes
hard for pupils to solve their problems

Modules, Functions, and Requirements of Project

This application is a JFrame and MySQL project that runs on the Tomcat
server; it may also be run in Eclipse and Textpad. We created this JFrame and
My SQL Project on Student Management System to automate the procedure of
the Student Management.

The primary functions of this project are to manage Logins, Fees, Profiles,
Students, Courses, and Exams.

This is a Major Project in Java that is suited for students searching for final-year
java projects. The project’s primary modules are the Logins module, Fees
module, Profiles module, Student module, and Courses module, which conduct
all operations in their respective domains. This is a secure online application that
runs within the JVM.

Let’s see some important modules:


Login module

The name makes it obvious what this function is for. It allows both the user and
the administrator to log in. The initial login would always be the admin login,
with the same password, admin.

After logging in as an administrator, you may do administrative tasks such as


adding, updating, generating and deleting student information.
GUI module

This function, as the name implies, links the database to the GUI. After
connecting the database, the function must be started by entering the database’s
login and password. The database, tables, and data may then be added to the table
using the create function.
This is accomplished through the use of SQL queries, which aid in connecting to
the GUI and enabling login.
Report of Student Management System
 Logins report: We may produce all Logins reports in this report.
 Fees report: Generate Fees reports.
 Profiles report: All Profiles reports will be available in this part
 Student report: You can produce filtered Student reports
 You can generate Student, Logins, and Courses reports
 Dynamic search is available for Fees, Exams, and Profiles.
 PDF reporting has been included for exporting reports for Logins,
Fees, and Profiles modules.
 CSV reports for Logins, Students, and Fees may be created.
Modules of Student Management System
 Logins module: From this module, we can handle all Login
operations.
 Logins module: From this module, we can handle all Login-related
activities.
 Profiles module: Profiles will handle all actions related to Profiles.
 Student module: This module is in charge of Student functions.
 Course module: Courses modules perform all the create, read, update
and delete operations of Courses
Software Requirements
 JDK 1.8: You need JDK 1.8 to execute this project.
 Tomcat 8: The Tomcat 8 server is used for this project.
 MySQL: This project requires the use of a MySQL database.
 MySQL JConnector: This is required for connecting MySQL and
Java.

ACTUAL CODE

LOGIN MODULE
import java.awt.*;
import javax.swing.*;
import java.sql.*;
import java.awt.event.*;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.awt.EventQueue.*;
class Login extends JFrame{
JButton cancel;
JPanel jPanel1;
JPasswordField jPasswordField1;
JTextField jTextField1;
Label lUser;
Label label1;
JButton login;
Label lpass;
Login(){
jPanel1 = new javax.swing.JPanel();
label1 = new java.awt.Label();
lUser = new java.awt.Label();
lpass = new java.awt.Label();
jTextField1 = new javax.swing.JTextField();
jPasswordField1 = new javax.swing.JPasswordField();
login = new javax.swing.JButton();
cancel = new javax.swing.JButton();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
jPanel1.setBackground(new java.awt.Color(102, 102, 102));

label1.setAlignment(java.awt.Label.CENTER);
label1.setBackground(new java.awt.Color(255, 153, 51));
label1.setCursor(new
java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
label1.setFont(new java.awt.Font("Dialog", 1, 18)); // NOI18N
label1.setText("Login");

lUser.setFont(new java.awt.Font("Dialog", 0, 14)); // NOI18N


lUser.setForeground(new java.awt.Color(255, 255, 255));
lUser.setText("Username");
lpass.setFont(new java.awt.Font("Dialog", 1, 14)); // NOI18N
lpass.setForeground(new java.awt.Color(255, 255, 255));
lpass.setText("Password");

jTextField1.setToolTipText("Enter Your Username");


login.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
PreparedStatement ps;
ResultSet rs;
String uname = jTextField1.getText();
String pass = String.valueOf(jPasswordField1.getPassword());

String query = "SELECT * FROM user WHERE username =?


AND pass =?";
try {
ps = MyConnection.getConnection().prepareStatement(query);
ps.setString(1, uname);
ps.setString(2, pass);

rs = ps.executeQuery();

if(rs.next())
{
MainFrame mf = new MainFrame();
mf.setVisible(true);
mf.pack();
mf.setLocationRelativeTo(null);
}
else{
JOptionPane.showMessageDialog(null, "Incorrect
Username Or Password", "Login Failed", 2);
}
} catch (SQLException ex) {
Logger.getLogger(Login.class.getName()).log(Level.SEVERE,
null, ex);
}
}
});
jPasswordField1.setToolTipText("Enter password");

login.setText("Login");
cancel.setText("Cancel");
javax.swing.GroupLayout jPanel1Layout = new
javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(

jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(label1,
javax.swing.GroupLayout.PREFERRED_SIZE, 400,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 0, Short.MAX_VALUE))
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(64, 64, 64)

.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.
LEADING)
.addComponent(lpass,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(lUser,
javax.swing.GroupLayout.PREFERRED_SIZE, 91,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(22, 22, 22)

.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.
LEADING, false)
.addComponent(jTextField1)
.addComponent(jPasswordField1,
javax.swing.GroupLayout.DEFAULT_SIZE, 139, Short.MAX_VALUE))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(91, 91, 91)
.addComponent(login)

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(cancel)
.addGap(68, 68, 68))
);
jPanel1Layout.setVerticalGroup(

jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(label1,
javax.swing.GroupLayout.PREFERRED_SIZE, 45,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(52, 52, 52)

.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.
TRAILING)
.addComponent(lUser,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField1,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(48, 48, 48)

.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.
TRAILING)
.addComponent(lpass,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jPasswordField1,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 88,
Short.MAX_VALUE)

.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.
BASELINE)
.addComponent(login)
.addComponent(cancel))
.addGap(39, 39, 39))
);

javax.swing.GroupLayout layout = new


javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(

layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
layout.setVerticalGroup(

layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
pack();
}// </editor-fold>
public static void main (String args[]){
Login l = new Login();
l.setVisible (true);
}
}

MAIN FRAME MODULE


import java.awt.*;
import javax.swing.*;
import java.sql.*;
import java.awt.event.*;

class MainFrame extends JFrame {


private javax.swing.JLabel jLabel1;
private javax.swing.JMenu jMenu3;
private javax.swing.JMenu jMenu4;
private javax.swing.JMenu jMenu5;
private javax.swing.JMenuBar jMenuBar2;
private javax.swing.JMenuItem Add;
private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
private javax.swing.JPanel jPanel3;
private javax.swing.JLabel label_ccount;
private javax.swing.JLabel label_scount;

MainFrame(){
jPanel1 = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
jPanel2 = new javax.swing.JPanel();
label_scount = new javax.swing.JLabel();
jPanel3 = new javax.swing.JPanel();
label_ccount = new javax.swing.JLabel();
jMenuBar2 = new javax.swing.JMenuBar();
jMenu3 = new javax.swing.JMenu();
jMenu4 = new javax.swing.JMenu();
jMenu5 = new javax.swing.JMenu();
Add = new javax.swing.JMenuItem();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

jPanel1.setBackground(new java.awt.Color(0, 204, 204));


jPanel1.setFocusable(false);

jLabel1.setBackground(new java.awt.Color(255, 153, 0));


jLabel1.setFont(new java.awt.Font("Segoe UI", 1, 18)); // NOI18N
jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel1.setText("WELCOME");

label_scount.setFont(new java.awt.Font("Segoe UI", 1, 18)); // NOI18N


label_scount.setText("Student Count =");
javax.swing.GroupLayout jPanel2Layout = new
javax.swing.GroupLayout(jPanel2);
jPanel2.setLayout(jPanel2Layout);
jPanel2Layout.setHorizontalGroup(

jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(label_scount,
javax.swing.GroupLayout.DEFAULT_SIZE, 254, Short.MAX_VALUE)
);
jPanel2Layout.setVerticalGroup(

jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(label_scount,
javax.swing.GroupLayout.DEFAULT_SIZE, 89, Short.MAX_VALUE)
);

label_ccount.setFont(new java.awt.Font("Segoe UI", 1, 18)); // NOI18N


label_ccount.setText("Course Count =");

javax.swing.GroupLayout jPanel3Layout = new


javax.swing.GroupLayout(jPanel3);
jPanel3.setLayout(jPanel3Layout);
jPanel3Layout.setHorizontalGroup(

jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(label_ccount,
javax.swing.GroupLayout.DEFAULT_SIZE, 253, Short.MAX_VALUE)
);
jPanel3Layout.setVerticalGroup(

jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(label_ccount,
javax.swing.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE)
);

javax.swing.GroupLayout jPanel1Layout = new


javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(

jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(392, 392, 392)
.addComponent(jLabel1,
javax.swing.GroupLayout.PREFERRED_SIZE, 296,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(413, Short.MAX_VALUE))
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jPanel2,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jPanel3,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(46, 46, 46))
);
jPanel1Layout.setVerticalGroup(

jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel1,
javax.swing.GroupLayout.PREFERRED_SIZE, 69,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(78, 78, 78)

.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.
LEADING)
.addComponent(jPanel2,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jPanel3,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap(356, Short.MAX_VALUE))
);

jMenu3.setText("File");
jMenuBar2.add(jMenu3);

jMenu4.setText("Edit");
jMenuBar2.add(jMenu4);

jMenu5.setText("Student");

Add.setText("ADD");
Add.addActionListener(new java.awt.event.ActionListener() {
public void
actionPerformed(java.awt.event.ActionEvent evt) {
Newstudent n = new Newstudent();
n.setVisible(true);
}
});
jMenu5.add(Add);

jMenuBar2.add(jMenu5);

setJMenuBar(jMenuBar2);

javax.swing.GroupLayout layout = new


javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(

layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
layout.setVerticalGroup(

layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);

pack();
}// </editor-fold>

public static void main(String args[]){


MainFrame mf = new MainFrame();
mf.setVisible(true);
}
NEW STUDENT MODULE
import java.awt.*;
import javax.swing.*;
import java.sql.*;
import java.awt.event.*;

class Newstudent extends JFrame{


private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel4;
private javax.swing.JLabel jLabel5;
private javax.swing.JLabel jLabel6;
private javax.swing.JPanel jPanel1;
private javax.swing.JRadioButton jRadioButton1;
private javax.swing.JRadioButton jRadioButton2;
private javax.swing.JScrollPane jScrollPane1;
private javax.swing.JTextArea jTextArea1;
private javax.swing.JTextField jTextField1;
private javax.swing.JTextField jTextField2;
private javax.swing.JTextField jTextField3;
private javax.swing.JTextField jTextField4;
private java.awt.Label label1;

Newstudent(){
jPanel1 = new javax.swing.JPanel();
label1 = new java.awt.Label();
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jLabel5 = new javax.swing.JLabel();
jLabel6 = new javax.swing.JLabel();
jTextField1 = new javax.swing.JTextField();
jTextField2 = new javax.swing.JTextField();
jRadioButton1 = new javax.swing.JRadioButton();
jRadioButton2 = new javax.swing.JRadioButton();
jTextField3 = new javax.swing.JTextField();
jTextField4 = new javax.swing.JTextField();
jScrollPane1 = new javax.swing.JScrollPane();
jTextArea1 = new javax.swing.JTextArea();
jButton1 = new javax.swing.JButton();
jButton2 = new javax.swing.JButton();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

jPanel1.setBackground(new java.awt.Color(102, 102, 102));


jPanel1.setForeground(new java.awt.Color(255, 255, 255));

label1.setAlignment(java.awt.Label.CENTER);
label1.setBackground(new java.awt.Color(255, 153, 0));
label1.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N
label1.setText("New Student");

jLabel1.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N


jLabel1.setForeground(new java.awt.Color(255, 255, 255));
jLabel1.setText("First Name");
jLabel2.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N
jLabel2.setForeground(new java.awt.Color(255, 255, 255));
jLabel2.setText("Last Name");

jLabel3.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N


jLabel3.setForeground(new java.awt.Color(255, 255, 255));
jLabel3.setText("Gender");

jLabel4.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N


jLabel4.setForeground(new java.awt.Color(255, 255, 255));
jLabel4.setText("BirthDate");

jLabel5.setFont(new java.awt.Font("Segoe UI", 3, 14)); // NOI18N


jLabel5.setForeground(new java.awt.Color(255, 255, 255));
jLabel5.setText("Phone");

jLabel6.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N


jLabel6.setForeground(new java.awt.Color(255, 255, 255));
jLabel6.setText("Address");

jRadioButton1.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N


jRadioButton1.setForeground(new java.awt.Color(0,0,0));
jRadioButton1.setSelected(true);
jRadioButton1.setText("Male");

jRadioButton2.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N


jRadioButton2.setForeground(new java.awt.Color(0,0,0));
jRadioButton2.setText("Female");

jTextArea1.setColumns(20);
jTextArea1.setRows(5);
jScrollPane1.setViewportView(jTextArea1);

jButton1.setBackground(new java.awt.Color(0, 0, 0));


jButton1.setForeground(new java.awt.Color(255, 255, 255));
jButton1.setText("Cancel");

jButton2.setBackground(new java.awt.Color(0, 0, 0));


jButton2.setForeground(new java.awt.Color(255, 255, 255));
jButton2.setText("ADD");

javax.swing.GroupLayout jPanel1Layout = new


javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(

jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(label1, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(20, 20, 20)

.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.
LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()

.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.
LEADING)
.addComponent(jLabel4,
javax.swing.GroupLayout.PREFERRED_SIZE, 135,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel5,
javax.swing.GroupLayout.PREFERRED_SIZE, 82,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel6,
javax.swing.GroupLayout.PREFERRED_SIZE, 67,
javax.swing.GroupLayout.PREFERRED_SIZE))

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)

.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.
LEADING)
.addComponent(jScrollPane1,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)

.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.
LEADING, false)
.addComponent(jTextField3)
.addComponent(jTextField4,
javax.swing.GroupLayout.DEFAULT_SIZE, 175, Short.MAX_VALUE))))

.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.
TRAILING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(jButton1,
javax.swing.GroupLayout.PREFERRED_SIZE, 105,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(106, 106, 106)
.addComponent(jButton2,
javax.swing.GroupLayout.PREFERRED_SIZE, 129,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel1Layout.createSequentialGroup()

.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.
LEADING)
.addComponent(jLabel1,
javax.swing.GroupLayout.PREFERRED_SIZE, 100,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.
TRAILING, false)
.addComponent(jLabel3,
javax.swing.GroupLayout.Alignment.LEADING,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel2,
javax.swing.GroupLayout.Alignment.LEADING,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
.addGap(41, 41, 41)

.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.
LEADING)

.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.
LEADING, false)
.addComponent(jTextField1)
.addComponent(jTextField2,
javax.swing.GroupLayout.DEFAULT_SIZE, 176, Short.MAX_VALUE))
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(jRadioButton1,
javax.swing.GroupLayout.PREFERRED_SIZE, 98,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(73, 73, 73)
.addComponent(jRadioButton2,
javax.swing.GroupLayout.PREFERRED_SIZE, 98,
javax.swing.GroupLayout.PREFERRED_SIZE))))))
.addContainerGap(125, Short.MAX_VALUE))
);
jPanel1Layout.setVerticalGroup(

jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(label1, javax.swing.GroupLayout.PREFERRED_SIZE, 55,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(64, 64, 64)

.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.
BASELINE)
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE,
48, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField1,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)

.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.
BASELINE)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE,
58, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField2,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)

.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.
BASELINE)
.addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE,
43, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jRadioButton1)
.addComponent(jRadioButton2))
.addGap(18, 18, 18)

.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.
BASELINE)
.addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE,
44, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField3,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(38, 38, 38)

.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.
BASELINE)
.addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE,
40, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField4,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)

.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.
LEADING)
.addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE,
38, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jScrollPane1,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 32,
Short.MAX_VALUE)

.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.
BASELINE)
.addComponent(jButton1,
javax.swing.GroupLayout.PREFERRED_SIZE, 37,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton2,
javax.swing.GroupLayout.PREFERRED_SIZE, 37,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(24, 24, 24))
);
javax.swing.GroupLayout layout = new
javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);

pack();
}
public static void main(String args[]){
Newstudent n = new Newstudent();
n.setVisible(true);
}
}
JDBC CONNECTION MODULE
import java.sql.*;
class MyConnection
{
public static Connection getConnection(){

Connection con = null;


try {
Class.forName("com.mysql.cj.jdbc.Driver");
con =
DriverManager.getConnection("jdbc:mysql://localhost:3308/studentdb","root","");
} catch (Exception ex) {
System.out.println(ex.getMessage());
}

return con;
}
}

PRINTING DATA FROM DATABASE


public class MyFunction
{
public int countData(String tableNames){
int total = 0;
Connection con = MyConnection.getConnection();
Statement st;
try{
st = con.createStatement();
ResulSet rs = st.executeQuery("SELECT COUNT(*) AS 'total' FROM
"+tableNames);
while(rs.next()){
total = rs.getInt(1);
}

}
catch (Exception ex)
{
System.out.println(ex.getMessage());

}
return total;
}
}
OUTPUT
Conclusion

The Student Management System Project in Java is one of the many systems
created that have several functions that satisfy the current Student Management
system needs. You may improve it by including features such as RFID and SMS
to keep students informed of their actions, among other things. Java provides a
broad range of features that may be used to develop such amazing apps.

Reference

 Websites:
 https://www.javatpoint.com/software-testing-tutorial
 https://www.geeksforgeeks.org/software-testing-basics/
 https://www.techtarget.com/whatis/definition/software-testing
 https://www.tutorialspoint.com/software_testing/index.htm
 https://www.tutorialspoint.com/software_testing_dictionary/gui_softwa
re_testing.htm
 https://reqtest.com/testing-blog/gui-testing-tutorial/

 Books:
 Adavanced Java programming by Sanchet Yadhav
 Complete Reference by Schildt ,Herbert
 Java 2 Programming Black Book by Holzner, Steven et al.

You might also like