Project File
Project File
Project Report
Degree of
Submitted to
DATE:…………………
CERTIFICATE
This is to certify that the work embodies in this project entitled,
“University Management System”, being submitted by Utkarsh Raj
(202245200104) in partial fulfillment of the requirement for the award of
“Bachelor of Computer Applications” to PATLIPUTRA UNIVERSITY, PATNA
Dr. Neeraj Agrawal Er. Amit Kumar Shukla Prof. Ravi Kumar Soni
Director Head of Department-IT Assistant Professor-IT
Page1|
Catalyst Institute of Management and Advanced
Global Excellence
Department of Computer Science & Information Technology
Session 2022-2025
Date:
APPROVAL CERTIFICATE
The project report entitled “University Management System”, being submitted by
Utkarsh Raj (202245200104) has been examined by us and is hereby approved for the
award of degree “Bachelor of Computer Applications”, for which it has been submitted.
It is understood that by this approval the undersigned do not necessarily endorse or
approve any statement made, the opinion expressed or conclusion drawn therein, but
approve the project only for the purpose for which it has been submitted.
Date: Date:
Page2|
Catalyst Institute of Management and Advanced
Global Excellence
Department of Computer Science & Information Technology
Session 2022-2025
Date:
DECLARATION
I, Utkarsh Raj hereby declare that the work, which is being presented in the
myown work carried under the joint guidance of Prof. Ravi Kumar Soni Sir
and Prof. Niraj Kumar Singh Sir. I have not submitted the matter
Utkarsh Raj
Registration No : 202245200104
Session-2022-2025
Page3|
ACKNOWLEDGEMENT
“A journey is easier when you travel together. Interdependence is certainly more valuable than
independence.”
I would like to thanks, Prof. Ravi Kumar Soni Sir and Prof. Niraj Kumar Singh Sir, for providing
regular guidance and insight into my project work. I also thank them for all advice he has given me in the
past year, and for always having time for me, whenever I needed.
I give special thanks to Er. Amit Kumar Shukla Sir, Prof. Raju Upadhyay Sir, and Prof. Anjesh
Sir for always being willing to help find solutions to any problems I had with my work.
“The completion of any project depends upon the cooperation, coordination, and combined
efforts of several resources of knowledge, inspiration, and energy”.
I express my gratitude and thanks to all the staff members of Computer Science departments for
their sincere cooperation in furnishing relevant information to complete this Project well in time
successfully.
I extend a special word to my friends, who have been a constant source of inspiration throughout
my project work.
Lastly but not least I must express my cordial thank to my parent and family members who gave
me the moral support without that it is impossible to complete my project work. With this note, I thank
everyone for the support.
(Utkarsh Raj)
Registration No : 202245200104
Session-2022-2025
Page4|
CONTENTS
REPORT.................................................................................................... ……………………………………………...
INTRODUCTION ......................................................................................................................................... 8
OBJECTIVE ............................................................................................................................................... 9
ECONOMICAL FEASIBILITY:...............................................................................................................7
ANALYSIS..................................................................................................................................................... 10
DFD ........................................................................................................................................................... 10
Page5|
TESTING....................................................................................................................................................... 21
LIMITATIONS AND FURTHER ENHANCEMENTS .............................................................................. 24
SECURITY MECHANISM ........................................................................................................................... 25
SNAPSHOTS ............................................................................................................................................... 26
Page6|
UNIVERSITY MANAGEMENT SYSTEM
Page7|
INTRODUCTION
The “UNIVERSITY MANAGEMENT SYSTEM” has been design with the help of two
powerful programming languages “JAVA” and “MySQL”. The “JAVA” being in the
The foreground language is favorite today, due to his interactive user interface and
The background language is favorite many of the programmers because it offers the
much wanted structured query facility. The MySQL provides high security, as the
database is stored in the logical area called “DB Engine”. As “DB Engine” is created in
the virtual memory and end user cannot access that directly it.
developed. The “JAVA” gives the interactive look and “MySQL” gives high security.
The “PATLIPUTRA UNIVERSITY” is a big school of our country, it should have high
Page8|
OBJECTIVE
Page9|
PROJECT CATEGORY JAVA
P a g e 10 |
ADVANTAGES OF JAVA
P a g e 11 |
5. Java is interpreted: An interpreter is needed in order to run Java
programs. The programs are compiled into Java Virtual Machine code
called bytecode.
P a g e 12 |
TOOLS/PLATFORM REQUIRED
Operating System
Hardware Requirements:
• 512 MB RAM
Software Requirements:
• JDK
• SQL Workbench
• Notepad/Editor
• Apache Netbeans
P a g e 13 |
PROBLEM DEFINITION
REQUIREMENT SPECIFICATIONS
P a g e 14 |
Project planning is part of project management, which relates to the use of
schedules such as Gantt charts to plan and subsequently report progress
within the project environment.
Initially, the project scope is defined and the appropriate methods for
completing the project are determined. Following this step, the durations for
the various tasks necessary to complete the work are listed and groupedinto
a work breakdown structure. The logical dependencies between tasks are
defined using an activity network diagram that enables identification ofthe
critical path. Float or slack time in the schedule can be calculated using
software. Then the necessary resources can be estimated and costs for each
activity can be allocated to each resource, giving the total project cost. At
this stage, the project plan may be optimized to achieve the appropriate
balance between resource usage and project duration to comply with the
project objectives. Once established and agreed, the plan becomes what is
known as the baseline. Progress will be measured against the baseline
throughout the life of the project. Analyzing progress compared to the
baseline is known as earned value management.
P a g e 15 |
GANTT CHART
The bars are drawn against a time line. The length of each bar is proportional
to the length of time planned for the activity. Gantt chart can take different
phase depending on their intended use. The Gantt chart of University
Management System is drawn for the time management. The Gantt chart
is drawn below:
P a g e 16 |
YEAR 2025
11th Nov 1st Dec 16th Dec 1st Jan 16th Jan 1st Feb
Start
ANALYSIS
DESIGN DATABASE(BACKEND)
Code Part
Report
Write Manual
Finish
P a g e 17 |
PERT CHART
PERT controls time and cost during the project and also facilitate
finding the right balance between completing a project on time and
completing it within the budget. There are thus not one but many critical
paths, depending on the permutations of the estimates for each task. This
makes analysis of critical path in PERT charts very complex. The PERT chart
representation of the University Management System is shown below.
IDENTIFICATION OF NEED
Requirement elicitation.
Requirement specification.
System Modeling.
Requirement validation.
Requirement Management.
Page1
In other words we can say that requirement analysis is a software
task that bridges the gap between system level requirement engineering
and software design.
say or ask; Both are worried that what they do say will bemisinterpreted;
both are thinking about where it might lead (Both likely have radically
different expectation here); Both want to get the think over with, but at
the same time, both want it to be a success.
Page2
encounter itself. The first set of Context-free question focuses on the
customer, the overall goals, and the benefits. For example, the analyst
might ask: -
Can you show me (or describe) the environment in which the solution
will be used?
Page3
Are you the right person to answer these questions? Are your answers?
Official”?
Preliminary Investigation: -
Page4
Here for the Ngo Management System, I have worked on the
preliminary investigation that accomplished the following objectives: -
Conducting interviews.
Page5
FEASIBILITY STUDY
• Technical feasibility.
• Operational feasibility.
• Economic feasibility.
• Social feasibility.
• Management feasibility.
• Legal feasibility.
• Time feasibility.
Page6
necessary that it should be conducted competently and that no
fundamental errors of judgment are made.
TECHNICAL FEASIBILITY: -
ECONOMICAL FEASIBILITY: -
Page7
known as Cost/Benefit analysis, the procedure is to determine the
benefits and saving that are expected from a proposed system and
compare them with costs. If benefits outweigh costs, a decision is taken
to design and implement the system. Other weight costs, a decision is
taken to design and implement the system. Otherwise, further
justification or alternative in the proposed system will have to be made
if is to have a chance of being approved. This is an ongoing effort that
improves in accuracy at each phase of the system life cycle.
OPERATIONAL FEASIBILITY: -
Page8
My project is also fit in Operational Feasibility Study. As I have
explained before this about Technical Feasibility and Economical
Feasibility, this Software is very easy and user-friendly.
I have used a very easy menu system and also used some controlbuttons
in the easy way by which one can choose the options on his desire.
1. It is User-Friendly.
2. It is having less paperwork.
3. Efficient tractability.
4. Query can be generated.
5. Various Reports and Forms can be generated.
6. Fully protected by Password and User name for unauthorized
access.
Page9
ANALYSIS
ENQURY DETAIL
FACULTY
View/Delete
FEE DETAIL
UNIVER
STUDENT REGISTRATION
Department SITY
Add/Update
View/ Print
STUDENT DETAILS
REPORT
P a g e 10
MODULE DESCRIPTION
P a g e 12
DATA STRUCTURE SNAP SHOT
Student Details
P a g e 13
Teacher Details
Attendance
P a g e 14
Student Leave
Teacher Leave
P a g e 15
Subject
Marks
P a g e 16
FEE
COLLEGE FEE
P a g e 17
LIST OF REPORTS
P a g e 18
SCOPE AND FUTURE ENHANCEMENT
The project can be used as a sub-project for any other projects. The main
future scope is as follows:-
🞛It gives correct information about Student details, Staff details, Fee
etc.
IMPLEMENTATION METHODOLOGY
P a g e 19
limitation. To implement of this software, the followings are the necessary:
✓ Create separate user for this application: A user with the password
is to be created for storing the data in a separate place. Storing
data under separate user will protect the data. SQL Workbench
can be used for creating the said username and password.
✓ Create required tables: The structure of tables required for this
project (Detail given in the data base design section) is to be
created in the said user. The SQL statement CREATE can be used
for creating such tables.
P a g e 20
✓ Create Distributable set of files: An installation package of the
software is to be built for implementation of the project at desired
location.
TESTING
b) TESTING STRATEGY:-
A testing strategy explains how to conduct a test to uncover all the errors
with minimum possible time and effort. It should be flexible enough to
promote customization that may be necessary in due course of
development process.
c) UNIT TESTING:-
P a g e 21
modules must be successful in the unit test before start of the
integration testing. The software developed for e-banking is tested
module wise by giving normal values and extreme values as input. All
the bugs have been identified and removed. The software designed is
tested module wise. Before using the software, an employee has to give
organization name and password.
INTEGRATION TESTING:-
VALIDATION TESTING:-
P a g e 22
TEST CASE DESIGN
The techniques that are used in deriving the test cases are explained
below.
CONDITION TESTING:-
EQUIVALENCE PARTITIONING:-
P a g e 23
test cases can be derived. A typical test uncovers a class errors might
otherwise require many more test cases before the error is observed.
Equivalence classes for input determine the valid and invalid inputs for
the program
LIMITATIONS:
Considering the fact that has already gone ahead the following areas
needs to be further probed for improving the system to meet the
changing scenario.
P a g e 24
indenting, micro transactions, and customer relationship
management.
SECURITY MECHANISM
P a g e 25
password to a user. A user is able to work on the software if she/he is an
authorized user with user id and password.
SNAPSHOTS
P a g e 26
SIGN UP FORM([Link])
package [Link];
import [Link].*;
import [Link].*;
import [Link].*;
import [Link].*;
Signup() {
setTitle("Signup Page");
getContentPane().setBackground([Link]);
setLayout(null);
setSize(520, 270);
setLocation(600, 300);
setVisible(true);
}
@Override
public void actionPerformed(ActionEvent ae) {
if ([Link]() == signup) {
String username = [Link]();
String password = [Link]();
P a g e 28
String confirmPassword = [Link]();
// Validate username
if (!validateUsername(username)) {
[Link](null, "Username must start with a capital letter and can only contain
letters and @.");
return;
}
// Validate password
if (!validatePassword(password)) {
[Link](null, "Password must contain at least 8 characters, including the special
character '@'.");
return;
}
if ([Link](confirmPassword)) {
try {
// Check if the username already exists
String queryCheck = "SELECT * FROM login WHERE username = '" + username + "'";
Conn c = new Conn();
ResultSet rs = [Link](queryCheck);
if ([Link]()) {
[Link](null, "Username already exists!");
} else {
// Insert the new user into the database
String queryInsert = "INSERT INTO login (username, password) VALUES ('" + username + "', '" +
password + "')";
int result = [Link](queryInsert);
if (result > 0) {
[Link](null, "Signup successful!");
setVisible(false);
new Login(); // Redirect to login screen
} else {
[Link](null, "Signup failed! Please try again.");
}
}
} catch (Exception e) {
[Link]();
}
} else {
[Link](null, "Passwords do not match!");
}
} else if ([Link]() == cancel) {
setVisible(false);
}
P a g e 29
}
// Username validation: Starts with capital letter, contains only letters and '@'
private boolean validateUsername(String username) {
String usernamePattern = "^[A-Z][A-Za-z@]+$";
return [Link](usernamePattern);
}
package [Link];
P a g e 30
import [Link].*;
import [Link].*;
import [Link].*;
import [Link].*;
Login() {
setTitle("Login Page");
getContentPane().setBackground([Link]);
setLayout(null);
tpass = new JPasswordField();
[Link](150, 70, 150, 20);
add(tpass);
P a g e 31
// Adding Change Password Button
changePassword = new JButton("Change Password");
[Link](100, 180, 150, 30);
[Link](this);
[Link]([Link]);
[Link]([Link]);
[Link](new Font("Algerian", [Link], 10));
add(changePassword);
setSize(600, 300);
setLocation(500, 250);
setVisible(true);
}
@Override
public void actionPerformed(ActionEvent ae) {
if ([Link]() == login) {
String username = [Link]();
String password = [Link]();
String query = "Select * from login where username = '" + username + "'and password = '" + password + "'";
try {
Conn c = new Conn();
ResultSet rs = [Link](query);
if ([Link]()) {
setVisible(false);
new Project();
} else {
[Link](null, "Invalid username or password");
setVisible(false);
}
} catch (Exception e) {
[Link]();
}
} else if ([Link]() == cancel) {
setVisible(false);
} else if ([Link]() == changePassword) {
// Open Change Password Window
new ChangePassword();
}
P a g e 32
}
ChangePassword() {
setTitle("Change Password");
getContentPane().setBackground([Link]);
P a g e 33
cancel = new JButton("Cancel");
[Link](180, 170, 120, 30);
[Link](this);
[Link]([Link]);
[Link]([Link]);
[Link](new Font("Algerian", [Link], 15));
add(cancel);
setLayout(null);
setSize(400, 250);
setLocation(600, 300);
setVisible(true);
}
@Override
public void actionPerformed(ActionEvent ae) {
if ([Link]() == submit) {
String oldPassword = [Link]();
String newPassword = [Link]();
String confirmPassword = [Link]();
if ([Link](confirmPassword)) {
try {
String query = "UPDATE login SET password = '" + newPassword + "' WHERE password = '" +
oldPassword + "'";
Conn c = new Conn();
int result = [Link](query);
if (result > 0) {
[Link](null, "Password Changed Successfully!");
setVisible(false);
new Login(); // Go back to login screen
} else {
[Link](null, "Incorrect Old Password");
}
} catch (Exception e) {
[Link]();
}
} else {
[Link](null, "New Password and Confirm Password do not match!");
}
} else if ([Link]() == cancel) {
setVisible(false);
}
}
}
P a g e 34
MAIN FORM ([Link]) :
code :
package [Link];
import [Link].*;
import [Link].*;
import [Link].*;
// New Information
JMenu newInfo = new JMenu("New Information");
P a g e 35
[Link]([Link]);
[Link](newInfo);
// Details
JMenu details = new JMenu("View Details");
[Link]([Link]);
[Link](details);
// Leave
JMenu leave = new JMenu("Apply Leave");
[Link]([Link]);
[Link](leave);
// Leave Details
JMenu leaveDetails = new JMenu("Leave Details");
[Link]([Link]);
[Link](leaveDetails);
// Exams
JMenu exam = new JMenu("Examination");
[Link]([Link]);
[Link](exam);
// Update
JMenu update = new JMenu("Update Details");
[Link]([Link]);
[Link](update);
// Fee
JMenu fee = new JMenu("Fee Details");
[Link]([Link]);
[Link](fee);
// Utility
JMenu utility = new JMenu("Utility");
[Link]([Link]);
[Link](utility);
// about
JMenu about = new JMenu("About");
[Link]([Link]);
[Link](about);
P a g e 38
JMenuItem ab = new JMenuItem("About");
[Link](this);
[Link]([Link]);
[Link](ab);
// Exit
JMenu exit = new JMenu("Exit");
[Link]([Link]);
[Link](exit);
setVisible(true);
}
@Override
public void actionPerformed(ActionEvent e){
String msg = [Link]();
if ([Link]("Logout")){
[Link](null, "Do you really want to
logout","Select",JOptionPane.YES_NO_CANCEL_OPTION);
setVisible(false);
new Login().setVisible(true);
}else if([Link]("Exit")){
[Link](null, "Are you sure to close the
application","Select",JOptionPane.YES_NO_CANCEL_OPTION);
setVisible(false);
} else if([Link]("Calculator")){
try{
[Link]().exec("[Link]");
}catch (Exception ae){
}
}else if([Link]("Notepad")){
try{
P a g e 39
[Link]().exec("[Link]");
}catch (Exception ae){
}
}else if([Link]("New Faculty Information")){
new AddTeacher();
}else if([Link]("New Student Information")){
new AddStudent();
}else if([Link]("View Faculty Details")){
new TeacherDetails();
}else if([Link]("View Student Details")){
new StudentDetails();
}else if([Link]("Attendance")){
new Attendance();
}else if([Link]("Student Leave")){
new StudentLeave();
}else if([Link]("Faculty Leave")){
new TeacherLeave();
}else if([Link]("Student Leave Details")){
new StudentLeaveDetails();
}else if([Link]("Faculty Leave Details")){
new TeacherLeaveDetails();
}else if([Link]("Update Student Details")){
new UpdateStudent();
}else if([Link]("Update Faculty Details")){
new UpdateTeacher();
}else if([Link]("Enter Marks")){
new EnterMarks();
}else if([Link]("Examination Result")){
new ExaminationDetails();
}else if([Link]("Fee Structure")){
new FeeStructure();
}else if([Link]("About")){
new About();
}else if([Link]("Student Fee Form")){
new StudentFeeForm();
}
}
public static void main(String []args){
new Project();
}
}
P a g e 40
Student form :
code :
package [Link];
import [Link].*;
import [Link].*;
import [Link].*;
import [Link];
import [Link].*;
JTextField tfname,tffname,tffaddress,tfphone,tfemail,tfx,tfxii,tfgraduate,tfaadhar;
JLabel lbroll;
JDateChooser dcdob;
JComboBox cbcourse;
JButton submit,reset,cancel;
AddStudent(){
setSize(900,700);
setLocation(350,50);
setLayout(null);
P a g e 42
JLabel phone = new JLabel("Phone No.");
[Link](400, 250, 150, 30);
[Link](new Font("serif",[Link],20));
add(phone);
P a g e 43
add(aadhar);
setVisible(true);
}
public void actionPerformed(ActionEvent ae){
if ([Link]() == submit){
String name = [Link]();
String fname = [Link]();
String roll = [Link]();
P a g e 44
String dob = ((JTextField) [Link]().getUiComponent()).getText();
String address = [Link]();
String phone = [Link]();
String email = [Link]();
String x = [Link]();
String xii = [Link]();
String graduate = [Link]();
String aadhar = [Link]();
String course = (String) [Link]();
try{
String query = "insert into student values('"+name+"', '"+fname+"', '"+roll+"', '"+dob+"', '"+address+"',
'"+phone+"', '"+email+"', '"+x+"', '"+xii+"', '"+graduate+"', '"+aadhar+"', '"+course+"')";
Faculty form:
P a g e 45
Code :
package [Link];
import [Link].*;
import [Link].*;
import [Link].*;
import [Link];
import [Link].*;
JTextField tfname,tffname,tffaddress,tfphone,tfemail,tfx,tfxii,tfgraduate,tfaadhar;
JLabel lbt_id;
JDateChooser dcdob;
JComboBox cbcourse;
JButton submit,reset,cancel;
AddTeacher(){
setSize(900,700);
setLocation(350,50);
setLayout(null);
JLabel heading = new JLabel("New Teacher Information");
[Link](300,30,400,30);
[Link]([Link]);
[Link](new Font("serif",[Link],30));
add(heading);
P a g e 46
JLabel name = new JLabel("Name");
[Link](50, 150, 150, 30);
[Link](new Font("serif",[Link],20));
add(name);
P a g e 47
[Link](new Font("serif",[Link],20));
add(phone);
P a g e 48
tfaadhar = new JTextField();
[Link](200, 400, 150, 30);
add(tfaadhar);
setVisible(true);
}
public void actionPerformed(ActionEvent ae){
if ([Link]() == submit){
String name = [Link]();
String fname = [Link]();
String t_id = lbt_id.getText();
String dob = ((JTextField) [Link]().getUiComponent()).getText();
String address = [Link]();
P a g e 49
String phone = [Link]();
String email = [Link]();
String x = [Link]();
String xii = [Link]();
String graduate = [Link]();
String aadhar = [Link]();
String qualification = (String) [Link]();
try{
String query = "insert into teacher values('"+name+"', '"+fname+"', '"+t_id+"', '"+dob+"', '"+address+"',
'"+phone+"', '"+email+"', '"+x+"', '"+xii+"', '"+graduate+"', '"+aadhar+"', '"+qualification+"')";
P a g e 50
View Student Details :
Code :
package [Link];
import [Link].*;
import [Link].*;
import [Link].*;
import [Link];
import [Link].*;
Choice crollno;
JTable table;
JButton search, print, update, add, cancel;
StudentDetails(){
getContentPane().setBackground([Link]);
setLayout(null);
try{
Conn c = new Conn();
ResultSet rs = [Link]("Select * from student");
while([Link]()){
[Link]([Link]("roll"));
P a g e 51
}
}catch(Exception e){
[Link]();
}
try{
Conn c = new Conn();
ResultSet rs = [Link]("select * from student");
[Link]([Link](rs));
}catch(Exception e){
[Link]();
}
JScrollPane jsp = new JScrollPane(table);
[Link](0, 100, 900, 600);
add(jsp);
setSize(900,700);
setLocation(350,50);
P a g e 52
setVisible(true);
}
@Override
public void actionPerformed(ActionEvent ae){
if([Link]() == search){
String query = "select * from student where roll = '"+[Link]()+"'";
try{
Conn c = new Conn();
ResultSet rs = [Link](query);
[Link]([Link](rs));
}catch(Exception e){
[Link]();
}
}else if([Link]() == print){
try{
[Link]();
}catch(Exception e){
[Link]();
}
}else if([Link]() == add){
setVisible(false);
new AddStudent();
}else if([Link]() == update){
new UpdateStudent();
}else{
setVisible(false);
}
}
public static void main(String []args){
new StudentDetails();
}
P a g e 53
View Faculty Details :
Code :
package [Link];
import [Link].*;
import [Link].*;
import [Link].*;
import [Link];
import [Link].*;
Choice cid;
JTable table;
JButton search, print, update, add, cancel;
TeacherDetails(){
getContentPane().setBackground([Link]);
setLayout(null);
try{
Conn c = new Conn();
P a g e 54 |
ResultSet rs = [Link]("Select * from teacher");
while([Link]()){
[Link]([Link]("t_id"));
}
}catch(Exception e){
[Link]();
}
try{
Conn c = new Conn();
ResultSet rs = [Link]("select * from teacher");
[Link]([Link](rs));
}catch(Exception e){
[Link]();
}
JScrollPane jsp = new JScrollPane(table);
[Link](0, 100, 900, 600);
add(jsp);
P a g e 55 |
[Link](this);
add(cancel);
setSize(900,700);
setLocation(350,50);
setVisible(true);
}
@Override
public void actionPerformed(ActionEvent ae){
if([Link]() == search){
String query = "select * from teacher where t_id = '"+[Link]()+"'";
try{
Conn c = new Conn();
ResultSet rs = [Link](query);
[Link]([Link](rs));
}catch(Exception e){
[Link]();
}
}else if([Link]() == print){
try{
[Link]();
}catch(Exception e){
[Link]();
}
}else if([Link]() == add){
setVisible(false);
new AddTeacher();
}else if([Link]() == update){
new UpdateTeacher();
}else{
setVisible(false);
}
}
public static void main(String []args){
new TeacherDetails();
}
}
P a g e 56 |
Attendance :
Code :
package [Link];
import [Link].*;
import [Link].*;
import [Link].*;
import [Link].*;
import [Link].*;
Attendance() {
setSize(800, 600);
setLocation(300, 100);
setLayout(null);
P a g e 57 |
JLabel l1 = new JLabel("Roll No.");
[Link](100, 100, 100, 30);
add(l1);
try {
Conn c = new Conn();
ResultSet rs = [Link]("SELECT roll, name FROM student");
int y = 140;
while ([Link]()) {
String roll = [Link]("roll");
String name = [Link]("name");
[Link](roll);
[Link](name);
y += 40;
}
} catch (Exception e) {
[Link]();
}
P a g e 58 |
submit = new JButton("Submit");
[Link](200, 500, 120, 30);
[Link](this);
[Link]([Link]);
[Link]([Link]);
add(submit);
setVisible(true);
}
String query = "INSERT INTO attendance VALUES('" + roll + "', '" + name + "', '" + date + "', '" +
status + "')";
[Link](query);
}
Code:
package [Link];
import [Link].*;
import [Link].*;
import [Link].*;
import [Link];
import [Link].*;
Choice crollno,ctime;
JDateChooser dcdate;
JButton submit,cancel;
StudentLeave(){
setSize(700,500);
setLocation(500,200);
setLayout(null);
P a g e 60 |
getContentPane().setBackground([Link]);
try{
Conn c = new Conn();
ResultSet rs = [Link]("Select * from student");
while([Link]()){
[Link]([Link]("roll"));
}
}catch(Exception e){
[Link]();
}
P a g e 61 |
submit = new JButton("Submit");
[Link](60, 350, 150, 30);
[Link](this);
[Link]([Link]);
[Link]([Link]);
[Link](new Font("Algerian",[Link],20));
add(submit);
try{
Conn c = new Conn();
[Link](query);
[Link](null,"Leave Confirmed");
setVisible(false);
}catch(Exception e){
[Link]();
}
}else{
setVisible(false);
}
}
public static void main(String []args){
new StudentLeave();
}
}
P a g e 62 |
Apply Teacher Leave:
Code :
package [Link];
import [Link].*;
import [Link].*;
import [Link].*;
import [Link];
import [Link].*;
Choice cid,ctime;
JDateChooser dcdate;
JButton submit,cancel;
TeacherLeave(){
setSize(700,500);
setLocation(500,200);
setLayout(null);
getContentPane().setBackground([Link]);
try{
Conn c = new Conn();
ResultSet rs = [Link]("Select * from teacher");
while([Link]()){
[Link]([Link]("t_id"));
}
}catch(Exception e){
[Link]();
}
P a g e 64 |
[Link]([Link]);
[Link](new Font("Algerian",[Link],20));
add(cancel);
setVisible(true);
}
public void actionPerformed(ActionEvent ae){
if([Link]() == submit){
String id = [Link]();
String date = ((JTextField)[Link]().getUiComponent()).getText();
String duration = [Link]();
try{
Conn c = new Conn();
[Link](query);
[Link](null,"Leave Confirmed");
setVisible(false);
}catch(Exception e){
[Link]();
}
}else{
setVisible(false);
}
}
public static void main(String []args){
new TeacherLeave();
}
}
Code:
P a g e 65 |
package [Link];
import [Link].*;
import [Link].*;
import [Link].*;
import [Link];
import [Link].*;
Choice crollno;
JTable table;
JButton search, print,cancel;
StudentLeaveDetails(){
getContentPane().setBackground([Link]);
setLayout(null);
try{
Conn c = new Conn();
ResultSet rs = [Link]("Select * from student");
while([Link]()){
[Link]([Link]("roll"));
}
}catch(Exception e){
[Link]();
}
try{
Conn c = new Conn();
ResultSet rs = [Link]("select * from studentleave");
[Link]([Link](rs));
}catch(Exception e){
[Link]();
}
P a g e 66 |
JScrollPane jsp = new JScrollPane(table);
[Link](0, 100, 900, 600);
add(jsp);
setSize(900,700);
setLocation(350,50);
setVisible(true);
}
@Override
public void actionPerformed(ActionEvent ae){
if([Link]() == search){
String query = "select * from studentleave where roll = '"+[Link]()+"'";
try{
Conn c = new Conn();
ResultSet rs = [Link](query);
[Link]([Link](rs));
}catch(Exception e){
[Link]();
}
}else if([Link]() == print){
try{
[Link]();
}catch(Exception e){
[Link]();
}
}else{
setVisible(false);
}
}
public static void main(String []args){
new StudentLeaveDetails();
}}
P a g e 67 |
Teacher leave Information :
Code:
package [Link];
import [Link].*;
import [Link].*;
import [Link].*;
import [Link];
import [Link].*;
Choice cid;
JTable table;
JButton search, print, cancel;
TeacherLeaveDetails(){
getContentPane().setBackground([Link]);
setLayout(null);
P a g e 68 |
try{
Conn c = new Conn();
ResultSet rs = [Link]("Select * from teacher");
while([Link]()){
[Link]([Link]("t_id"));
}
}catch(Exception e){
[Link]();
}
try{
Conn c = new Conn();
ResultSet rs = [Link]("select * from teacherleave");
[Link]([Link](rs));
}catch(Exception e){
[Link]();
}
JScrollPane jsp = new JScrollPane(table);
[Link](0, 100, 900, 600);
add(jsp);
setSize(900,700);
setLocation(350,50);
setVisible(true);
}
@Override
public void actionPerformed(ActionEvent ae){
if([Link]() == search){
P a g e 69 |
String query = "select * from teacherleave where id = '"+[Link]()+"'";
try{
Conn c = new Conn();
ResultSet rs = [Link](query);
[Link]([Link](rs));
}catch(Exception e){
[Link]();
}
}else if([Link]() == print){
try{
[Link]();
}catch(Exception e){
[Link]();
}
}else{
setVisible(false);
}
}
public static void main(String []args){
new TeacherLeaveDetails();
}
}
Code:
package [Link];
import [Link].*;
import [Link].*;
import [Link].*;
P a g e 70 |
import [Link].*;
public class EnterMarks extends JFrame implements ActionListener{
Choice crollno;
JComboBox cbsemester;
JTextField
tfsubject1,tfsubject2,tfsubject3,tfsubject4,tfsubject5,tfmarks1,tfmarks2,tfmarks3,tfmarks4,tfmarks5;
JButton submit,cancel;
EnterMarks(){
setSize(1000,500);
setLocation(300,150);
setLayout(null);
getContentPane().setBackground([Link]);
try{
Conn c = new Conn();
ResultSet rs = [Link]("Select * from student");
while([Link]()){
[Link]([Link]("roll"));
}
}catch(Exception e){
[Link]();
}
P a g e 71 |
setVisible(true);
P a g e 72 |
tfmarks3 = new JTextField();
[Link](250, 260, 200, 20);
add(tfmarks3);
}
public void actionPerformed(ActionEvent ae) {
if([Link]() == submit) {
try {
Conn c = new Conn();
// Add closing parenthesis for query1 and query2
String query1 = "insert into subject
values('"+[Link]()+"','"+[Link]()+"','"+[Link]()+"','"+tfsubjec
[Link]()+"','"+[Link]()+"','"+[Link]()+"','"+[Link]()+"')";
String query2 = "insert into marks
values('"+[Link]()+"','"+[Link]()+"','"+[Link]()+"','"+tfmarks2
.getText()+"','"+[Link]()+"','"+[Link]()+"','"+[Link]()+"')";
P a g e 73 |
} catch(Exception e) {
[Link]();
}
} else {
setVisible(false);
}
}
public static void main(String []args){
new EnterMarks();
}
}
Examination Details :
Code:
package [Link];
import [Link].*;
import [Link].*;
import [Link].*;
import [Link];
import [Link].*;
JTextField search;
JButton submit,cancel;
JTable table;
ExaminationDetails(){
P a g e 74 |
setSize(1000,500);
setLocation(300,150);
setLayout(null);
getContentPane().setBackground([Link]);
try{
Conn c = new Conn();
ResultSet rs = [Link]("select * from student");
P a g e 75 |
[Link]([Link](rs));
}catch(Exception e){
[Link]();
}
[Link](new MouseAdapter(){
public void mouseClicked(MouseEvent me){
int row = [Link]();
[Link]([Link]().getValueAt(row,2).toString());
}
});
setVisible(true);
}
public void actionPerformed(ActionEvent ae){
if([Link]()==submit){
setVisible(false);
new Marks([Link]());
}else{
setVisible(false);
}
}
P a g e 76 |
Update Student Details:
Code:
package [Link];
import [Link].*;
import [Link].*;
import [Link].*;
import [Link].*;
JTextField tffaddress,tfphone,tfemail,tfcourse;
JLabel lbroll;
JButton submit,cancel;
Choice crollno;
UpdateStudent(){
setSize(900,700);
setLocation(350,50);
setLayout(null);
JLabel heading = new JLabel("Update Student Information");
[Link](50,20,450,40);
P a g e 77 |
[Link]([Link]);
[Link](new Font("Century",[Link],30));
add(heading);
try{
Conn c = new Conn();
ResultSet rs = [Link]("Select * from student");
while([Link]()){
[Link]([Link]("roll"));
}
}catch(Exception e){
[Link]();
}
P a g e 80 |
JLabel lblaadhar = new JLabel();
[Link](200, 400, 150, 30);
[Link](new Font("serif",[Link],20));
add(lblaadhar);
try{
Conn c = new Conn();
String query = "Select * from student where roll='"+[Link]()+"'";
ResultSet rs = [Link](query);
while([Link]()){
[Link]([Link]("name"));
[Link]([Link]("fname"));
[Link]([Link]("dob"));
[Link]([Link]("roll"));
[Link]([Link]("address"));
[Link]([Link]("phone"));
[Link]([Link]("email"));
[Link]([Link]("class_x"));
[Link]([Link]("class_xii"));
[Link]([Link]("graduate"));
[Link]([Link]("aadhar"));
[Link]([Link]("course"));
}
}catch(Exception e){
[Link]();
}
[Link](new ItemListener(){
public void itemStateChanged(ItemEvent ie){
try{
Conn c = new Conn();
String query = "Select * from student where roll='"+[Link]()+"'";
ResultSet rs = [Link](query);
P a g e 81 |
while([Link]()){
[Link]([Link]("name"));
[Link]([Link]("fname"));
[Link]([Link]("dob"));
[Link]([Link]("roll"));
[Link]([Link]("address"));
[Link]([Link]("phone"));
[Link]([Link]("email"));
[Link]([Link]("class_x"));
[Link]([Link]("class_xii"));
[Link]([Link]("graduate"));
[Link]([Link]("aadhar"));
[Link]([Link]("course"));
}
}catch(Exception e){
[Link]();
}
}
});
setVisible(true);
}
public void actionPerformed(ActionEvent ae){
if ([Link]() == submit){
String roll = [Link]();
String address = [Link]();
P a g e 82 |
String phone = [Link]();
String email = [Link]();
String course = [Link]();
try{
String query = "update student set address = '"+address+"',phone = '"+phone+"',email = '"+email+"',
course = '"+course+"' where roll ='"+roll+"'";
P a g e 83 |
Update Teacher Details
Code:
package [Link];
import [Link].*;
import [Link].*;
import [Link].*;
import [Link].*;
JTextField tffaddress,tfphone,tfemail,tfqualification;
JLabel lbid;
JButton submit,cancel;
Choice cid;
UpdateTeacher(){
setSize(900,700);
setLocation(350,50);
setLayout(null);
JLabel heading = new JLabel("Update Teacher Information");
[Link](50,20,450,40);
[Link]([Link]);
[Link](new Font("Century",[Link],30));
add(heading);
try{
Conn c = new Conn();
ResultSet rs = [Link]("Select * from teacher");
while([Link]()){
[Link]([Link]("t_id"));
}
}catch(Exception e){
[Link]();
}
P a g e 85 |
JLabel dob = new JLabel("Date Of Birth");
[Link](400, 200, 200, 30);
[Link](new Font("serif",[Link],20));
add(dob);
P a g e 86 |
[Link](50, 350, 200, 30);
[Link](new Font("serif",[Link],20));
add(xii);
try{
Conn c = new Conn();
String query = "Select * from teacher where t_id='"+[Link]()+"'";
ResultSet rs = [Link](query);
while([Link]()){
[Link]([Link]("name"));
[Link]([Link]("fname"));
[Link]([Link]("dob"));
[Link]([Link]("t_id"));
[Link]([Link]("address"));
P a g e 87 |
[Link]([Link]("phone"));
[Link]([Link]("email"));
[Link]([Link]("class_x"));
[Link]([Link]("class_xii"));
[Link]([Link]("graduate"));
[Link]([Link]("aadhar"));
[Link]([Link]("qualification"));
}
}catch(Exception e){
[Link]();
}
[Link](new ItemListener(){
public void itemStateChanged(ItemEvent ie){
try{
Conn c = new Conn();
String query = "Select * from teacher where t_id='"+[Link]()+"'";
ResultSet rs = [Link](query);
while([Link]()){
[Link]([Link]("name"));
[Link]([Link]("fname"));
[Link]([Link]("dob"));
[Link]([Link]("t_id"));
[Link]([Link]("address"));
[Link]([Link]("phone"));
[Link]([Link]("email"));
[Link]([Link]("class_x"));
[Link]([Link]("class_xii"));
[Link]([Link]("graduate"));
[Link]([Link]("aadhar"));
[Link]([Link]("qualification"));
}
}catch(Exception e){
[Link]();
}
}
});
P a g e 88 |
[Link](this);
[Link]([Link]);
[Link]([Link]);
[Link](new Font("Algerian",[Link],20));
add(cancel);
setVisible(true);
}
public void actionPerformed(ActionEvent ae){
if ([Link]() == submit){
String id = [Link]();
String address = [Link]();
String phone = [Link]();
String email = [Link]();
String qualification = [Link]();
try{
String query = "update teacher set address = '"+address+"',phone = '"+phone+"',email = '"+email+"',
qualification = '"+qualification+"' where t_id ='"+id+"'";
P a g e 89 |
Fees Structure:
Code:
package [Link];
import [Link].*;
import [Link].*;
import [Link].*;
import [Link];
FeeStructure(){
setSize(1000,750);
setLocation(250,100);
setLayout(null);
getContentPane().setBackground([Link]);
try{
Conn c = new Conn();
ResultSet rs = [Link]("select * from fee");
[Link]([Link](rs));
P a g e 90 |
}catch(Exception e){
[Link]();
}
setVisible(true);
}
Code:
package [Link];
import [Link].*;
import [Link].*;
import [Link].*;
import [Link].*;
Choice crollno;
JComboBox cbcourse,cbsemester;
JLabel lbltotal;
JButton update,pay,back;
P a g e 91 |
StudentFeeForm(){
setSize(800,500);
setLocation(300,150);
setLayout(null);
getContentPane().setBackground([Link]);
try{
Conn c = new Conn();
ResultSet rs = [Link]("Select * from student");
while([Link]()){
[Link]([Link]("roll"));
}
}catch(Exception e){
[Link]();
}
P a g e 92 |
JLabel lblfname = new JLabel();
[Link](200, 140, 150, 20);
[Link](new Font("serif",[Link],20));
add(lblfname);
try{
Conn c = new Conn();
String query = "Select * from student where roll='"+[Link]()+"'";
ResultSet rs = [Link](query);
while([Link]()){
[Link]([Link]("name"));
[Link]([Link]("fname"));
}
}catch(Exception e){
[Link]();
}
[Link](new ItemListener(){
public void itemStateChanged(ItemEvent ie){
try{
Conn c = new Conn();
String query = "Select * from student where roll='"+[Link]()+"'";
ResultSet rs = [Link](query);
while([Link]()){
[Link]([Link]("name"));
[Link]([Link]("fname"));
}
}catch(Exception e){
[Link]();
}
}
});
String semester[] =
{"Semester1","Semester2","Semester3","Semester4","Semester5","Semester6","Semester7","Semester8"};
P a g e 93 |
cbsemester = new JComboBox(semester);
[Link](200, 220, 150, 20);
[Link]([Link]);
add(cbsemester);
Connection establish([Link])
package [Link];
import [Link].*;
Conn(){
try{
[Link]("[Link]");
c=
[Link]("jdbc:mysql://localhost:3306/universitymanagementsystem","root","uraj@199
4");
s = [Link]();
}catch(Exception e){
[Link]();
}
}
}
P a g e 95 |
About([Link])
Code:
package [Link];
import [Link].*;
import [Link].*;
About(){
setSize(700,500);
setLocation(400,200);
setLayout(null);
getContentPane().setBackground([Link]);
JLabel course = new JLabel("<html>Roll No. 109 <br>Batch : BCA B3 3rd Year (452)</html>");
[Link](70, 300, 350, 130);
[Link](new Font("Century",[Link],30));
add(course);
setVisible(true);
}
public static void main(String[] args){
new About();
}
}
BIBLIOGRAPHY
P a g e 97 |