SlideShare a Scribd company logo
1 | P a g e
JAIN PUBLIC SCHOOL, BARNAGAR
2017-18
A Project Report
on
JPS - School Management System
For
AISSCE 2017-18 Examination
[As a part of the Informatics Practices Course (065)]
SUBMITTED BY
Sarthak Khabiya
[Roll No ]
Under the Guidance of:
Mr. Vijay Soni
PGT (Comp.Sc)
2 | P a g e
JAIN PUBLIC SCHOOL
DEPARTMENT OF COMPUTER
CERTIFICATE
This is to certify that the Project entitled JPS-School
Managment System is a bonafide work done by Master
Sarthak Khabiya of class XII Session 2017-18 in partial
fulfillment of CBSE’s AISSCE Examination 2018 and has been
carried out under my direct supervision and guidance. This
report or a similar report on the topic has not been submitted
for any other examination and does not form a part of any other
course undergone by the candidate.
………………………… ……………………………..
Signature of External Signature of Teacher/Guide
Name: Name: Vijay Soni
Code: Designation: PGT (Comp.Sc.)
3 | P a g e
ACKNOWLEDGEMENT
undertook this Project work, as the part of my XII-Informatics
Practices course. I had tried to apply my best of knowledge and
experience, gained during the study and class work experience. However,
developing software system is generally a quite complex and time-
consuming process. It requires a systematic study, insight vision and
professional approach during the design and development. Moreover, the
developer always feels the need, the help and good wishes of the people
near you, who have considerable experience and idea.
I would like to extend my sincere thanks and gratitude to my teacher Mr.
Vijay Soni I am very much thankful to our Principal Mr. Satanand
Dubey for giving valuable time and moral support to develop this
software.
I would like to take the opportunity to extend my sincere thanks and
gratitude to my father Mr. Sanjay Khabiya, and my mother Mrs.
Rajkumari Khabiya for being a source of inspiration and providing time
and freedom to develop this software project.
I also feel indebted to my friends Miss. Khushi Tongya and Master.
Siddharth Choudhary for the valuable suggestions during the project
work.
Sarthak Khabiya
Class XII (Science)
I
4 | P a g e
C O N T E N T S
1. Introduction---------------------------------------------------------------- 5
2. Theoretical Background ----------------------------------------------- 6
3. Objective & Scope of the Project ----------------------------------- 7
4. Problem Definition & Analysis--------------------------------------- 9
5. System Implementation-----------------------------------------------10
5.1 The Hardware used: -------------------------------------------------10
5.2 The Softwares used: -------------------------------------------------10
6. System Design & Development ---------------------------------- 111
6.1 Database Design:-----------------------------------------------------11
6.2 I/O Forms Design & Event Coding:-------------------------------11
7. User Manual---------------------------------------------------------------86
7.1 How to install: ---------------------------------------------------------86
7.2 Working with Software:----------------------------------------------86
8. References ---------------------------------------------------------------88
5 | P a g e
1. Introduction
This software project is developed to automate the functionalities of a
School Management.The purpose of the software project is to develop the
Management Information System (MIS) to automate the record keeping of
School.
A MIS mainly consists of a computerized database, a collection of inter-
related tables for particular items, capable to produce different reports
relevant to the user. An application program is tied with the database for
easy access and interface to the database. Using Application program or
front-end, we can store, retrieve and manage all information in proper
way.
This software, being simple in design and working, does not require much
of training to users, and can be used as a powerful tool for automating a
School Management System.
During coding and design of the software Project, Java NetBeans IDE, a
powerful front-end tool is used for getting Graphical User Interface (GUI)
based integrated platform and coding simplicity. As a back-end a
powerful, open source RDBMS, My SQL is used as per requirement of the
CBSE curriculum of Informatics Practices Course.
6 | P a g e
2. Objective & Scope of the Project
he objective of the software project is to develop a computerized MIS to enchanced the
working of School. This software project is also aimed to enhance the keeping current
record of school, which will help managers to retrieve the up-to-date information at right
time in right shape.
Objective are as following:-
 Keeping well upto date record of the school.
 Remove the duplication of the records.
 Enchanced the fast working of school.
 Maintaining the Proper School Fee Record.
During the development of School Management System project, Java NetBeans IDE, a
powerful, open source event-driven form-based development environment is used for modular
design and future expandability of the system.
Despite of the best effort , the following limitations and functional boundaries are visible, which
limits the scope of this application software.
1. This software can store records and produce reports in pre-designed format in soft copy.
There is no facility yet to produce customized reports. Only specified reports are
covered.
2. Some application area like salary of staff and another expense etc. are not implemented
in the project. It facilitates school to record and update only transaction record.
3. Any part of the project can modify the easily without any much more effort...
4. This software does not require much training time of the users due to limited
functionality and simplicity
T
7 | P a g e
3. Theoretical Background
3.1 What is Database?
Introduction and Concepts:
A database is a collection of information related to a particular subject or purpose, such as
tracking customer orders or maintaining a music collection. Using any RDBMS application
software like MS SQL Server, MySQL, Oracle, Sybase etc, we can manage all your information
from a single database file. Within the file, divide your data into separate storage containers
called tables. You may and retrieve the data using queries.
A table is a collection of data about a specific topic, such as scholar number or class. Using a
separate table for each topic means you can store that data only once, which makes your
database more efficient and reduces data-entry errors. Table organises data into columns (called
fields) and rows (called records).
Role of RDBMS Application Program:
 Creating of a table, addition, deletion, modification of records.
 Retrieving data collectively or selectively.
 The data stored can be sorted or indexed at the user's discretion and direction.
 Various reports can be produced from the system. These may be either standardized
report or that may be specifically generated according to specific user definition.
 Mathematical functions can be performed and the data stored in the database can be
manipulated with these functions to perform the desired calculations.
 To maintain data integrity and database use.
The RDBMS interprets and processes users' requests to retrieve information from a database. In
most cases, a query request will have to penetrate several layers of software in the RDBMS and
operating system before the physical database can be accessed. The RDBMS responds to a query
by invoking the appropriate subprograms, each of which performs its special function to
interpret the query, or to locate the desired data in the database and present it in the desired
order.
3.2 MySQL :-
The management of data in a database system is done by means of a general-purpose software
package called a Database Management System (DBMS). Some commercially available
RDBMS are MySQL Server, MS ACCESS, ORACLE.
MySQL, the most popular Open Source SQL database management system, is developed,
distributed, and supported by Oracle Corporation. MySQL is named after co-founder Monty
Widenius's daughter, My. The name of the MySQL Dolphin ( logo) is “Sakila,”.
8 | P a g e
 MySQL is a database management system.
 MySQL is based on SQL.
 MySQL software is Open Source.
 The MySQL Database Server is very fast, reliable, and easy to use.
 MySQL Server works in client/server or embedded systems.
The Main Features of MySQL
 Works on many different platforms.
 Uses multi-layered server design with independent modules. .
 Easy to Maintain the Record
9 | P a g e
4. Problem Definition & Analysis
The hardest part of building a software system is deciding precisely what to build.
Activities related to problem are the following:
 Identification and documentation of customer’s or user’s needs.
 Analysis and validation of the requirements documents to ensure consistency,
completeness, and feasibility
 Evolution of needs.
After the analysis of the functioning of a School Management, the proposed System is expected
to do the following: -
 The proposed system should maintain all the records and transactions, and should
generate the required reports and information when required.
 To provide efficient and secured Information storage, flow and retrieval system, ensuring
the integrity and validity of records.
 To provide graphical and user-friendly interface to interact with a centralized database
based on client-server architecture.
 To identify the critical operation procedure and possibilities of simplification using
modern IT tools and practices.
10 | P a g e
5. System Implementation
5.1 The Hardware used:
While developing the system, the used hardware are:
PC with ADM 2.0 GHz processor having 4 GB RAM and other required devices.
5.2 The Softwares used:
 Microsoft Windows7 as Operating System.
 Java NetBeans 7 as Front-end Development environment.
 MySQL as Back-end Sever with Database for Testing.
 MS-Word 2007 for documentation.
11 | P a g e
6. System Design & Development
6.1 Database Design:
An important aspect of system design is the design of data storage structure. To begin with a
logical model of data structure is developed first. A database is a container object which contains
tables, queries, reports and data validation policies enforcement rules or contraints etc. A logical
data often represented as a records are kept in different tables after reducing anomalies and
redundancies. The goodness of data base design lies in the table structure and its relationship.
This software project maintains a database named sarthak which contains the following tables.
6.2 Table Design:
The database of sarthak contains 6 tables. The tables are normalized to minimize the
redundancies of data and enforcing the validation rules of the organization. Most of the tables
are designed to store master records. The tables and their structure are given below.
Table: Student
Column Name Type Size
Scholar_Number (Primary Key) Char 20
First_Name Char 50
Last_Name Char 50
Father_Name Char 50
Class Char 50
Mobile_Number Varchar 20
Place Char 50
Aadhar_Number (Unique Key) Char 20
Section Char 10
Sex Char 20
Table: Student_image
Column Name Type Size
Scholar_Number (Primary Key) Integer 11
Image BLOB
Table: Staff
Column Name Type Size
Emp_No (Unique Key) Integer 4
Name Char 80
Designation Char 40
Mobile_Number Char 20
Address Char 150
Aadhar_Number Char 20
MFee Float(8,2) 4
12 | P a g e
Table: Fees_paid
Column Name Type Size
rcp_no Integer 20
scholar_number Integer 20
Name Char 30
Class Char 30
installment Char 10
amount int 30
date Date
Table: feesstructure
Column Name Type Size
Class Char 20
Installment Char 10
Amt Char 30
Table: Login
Column Name Type Size
username varChar 15
password Char 15
13 | P a g e
6.2 I/O Forms Design & Event Coding:
The software project for School Management contains various forms along with programming
codes. Forms (JFrames) and their event coding are given below.
Frame: Main.java
private void formWindowGainedFocus(java.awt.event.WindowEvent evt)
{
new LOGIN().setVisible(true);
}
14 | P a g e
Frame: LOGIN.java
Coding for LOGIN.java:-
import com.mysql.jdbc.Connection;
import com.mysql.jdbc.Statement;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import javax.swing.JOptionPane;
public class LOGIN extends javax.swing.JFrame {
Connection con= null;
Statement stm=null;
ResultSet rs= null;
String db= "jdbc:mysql://localhost/sarthak";
/**
* Creates new form LOGIN
*/
public LOGIN() {
initComponents();
try{
Class.forName("com.mysql.jdbc.Driver");
con=(Connection) DriverManager.getConnection(db,"root","root");
stm=(Statement) con.createStatement();}
catch (ClassNotFoundException | SQLException e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
15 | P a g e
}
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
String user=jTextField1.getText();
String pass=new String(jPasswordField1.getPassword());
String ur=null, ps=null;
try
{
rs=stm.executeQuery("select * from login;");
while(rs.next())
{
ur=rs.getString("username");
ps=rs.getString("password");
}
if (user.equals(ur)&& pass.equals(ps))
{
new LOGIN_1().setVisible(true);
this.dispose();
}
else
{
JOptionPane.showMessageDialog(null,"Invalide User or Password");
}
}
catch (Exception e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}
private javax.swing.JButton jButton1;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JPanel jPanel1;
private javax.swing.JPasswordField jPasswordField1;
private javax.swing.JTextField jTextField1;
16 | P a g e
Frame: LOGIN_1.java
Coding of LOGIN_1.java
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
17 | P a g e
public class LOGIN_1 extends javax.swing.JFrame {
Connection con= null;
Statement stm=null;
ResultSet rs= null;
String db= "jdbc:mysql://localhost/sarthak";
public LOGIN_1() throws ClassNotFoundException {
initComponents();
try{
Class.forName("com.mysql.jdbc.Driver");
con=DriverManager.getConnection(db,"root","root");
stm=con.createStatement();}
catch (SQLException e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
try {
new STUDENT().setVisible(true);
} catch (SQLException ex) {
Logger.getLogger(LOGIN_1.class.getName()).log(Level.SEVERE, null, ex);
}
this.dispose();
}
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
try {
new view_student_1().setVisible(true);
} catch (SQLException ex) {
Logger.getLogger(LOGIN_1.class.getName()).log(Level.SEVERE, null, ex);
}
this.dispose();
}
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
try {
new staff().setVisible(true);
18 | P a g e
} catch (SQLException ex) {
Logger.getLogger(LOGIN_1.class.getName()).log(Level.SEVERE, null, ex);
}
this.dispose();
}
private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {
new view_staff().setVisible(true);
this.dispose();
}
private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {
new update_student().setVisible(true);
this.dispose();
}
private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {
new Update_Staff().setVisible(true);
this.dispose();
}
private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) {
new insert_class().setVisible(true);
this.dispose();
}
private void jButton8ActionPerformed(java.awt.event.ActionEvent evt) {
new view_class().setVisible(true);
this.dispose();
}
private void jLabel2MousePressed(java.awt.event.MouseEvent evt) {
new LOGIN().setVisible(true);
this.dispose();
}
private void jButton9ActionPerformed(java.awt.event.ActionEvent evt) {
new fees().setVisible(true);
this.dispose();
}
private void jButton8ActionPerformed(java.awt.event.ActionEvent evt) {
new view_class().setVisible(true);
this.dispose();
19 | P a g e
}
private void jButton11ActionPerformed(java.awt.event.ActionEvent evt) {
new student_del().setVisible(true);
this.dispose();
}
private void jButton10ActionPerformed(java.awt.event.ActionEvent evt) {
new JFrame().setVisible(true);
this.dispose();
}
private void jButton12ActionPerformed(java.awt.event.ActionEvent evt) {
new staff_del().setVisible(true);
this.dispose();
}
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
try {
new LOGIN_1().setVisible(true);
} catch (ClassNotFoundException ex) {
Logger.getLogger(LOGIN_1.class.getName()).log(Level.SEVERE, null, ex);
}
}
});
}
// Variables declaration - do not modify
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JButton jButton3;
private javax.swing.JButton jButton4;
private javax.swing.JButton jButton5;
private javax.swing.JButton jButton6;
private javax.swing.JButton jButton7;
private javax.swing.JButton jButton8;
private javax.swing.JButton jButton9;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private org.jdesktop.beansbinding.BindingGroup bindingGroup;
// End of variables declaration
}
20 | P a g e
Frame: STUDENT.java
Coding for STUDENT.java :-
import java.awt.HeadlessException;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.logging.Level;
import java.util.logging.Logger;
21 | P a g e
import javax.swing.ImageIcon;
import javax.swing.JFileChooser;
import javax.swing.JOptionPane;
public class STUDENT extends javax.swing.JFrame {
Connection con= null;
Statement stm=null;
ResultSet rs= null;
String db= "jdbc:mysql://localhost/sarthak";
String s;
ImageIcon ima=new ImageIcon();
public STUDENT() throws SQLException {
initComponents();
try{
Class.forName("com.mysql.jdbc.Driver");
con=DriverManager.getConnection(db,"root","root");
stm=con.createStatement();}
catch (ClassNotFoundException | SQLException e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
try {
new LOGIN_1().setVisible(true);
} catch (ClassNotFoundException ex) {
Logger.getLogger(STUDENT.class.getName()).log(Level.SEVERE, null, ex);
}
this.dispose();
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
String a=jTextField1.getText();
String b=jTextField2.getText();
String c=jTextField3.getText();
String d=jTextField4.getText();
String h=jTextField5.getText();
String f=jTextField6.getText();
String g=jTextField7.getText();
String i=jTextField8.getText();
22 | P a g e
String j=jTextField9.getText();
String k=jTextField10.getText();
ImageIcon img=(ImageIcon) jLabel9.getIcon();
try
{
stm.executeUpdate("insert into student
values("+a+",'"+b+"','"+c+"','"+d+"','"+h+"','"+f+"','"+g+"','"+i+"','"+j+"','"+k+"');");
stm.executeUpdate("insert into student_image values("+a+",'"+img+"');");
JOptionPane.showMessageDialog(null,"Entry Added Successfully");
}
catch(SQLException | HeadlessException e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}
private void formWindowGainedFocus(java.awt.event.WindowEvent evt) {
try{
rs=stm.executeQuery("select Scholar_Number from student;");
int acno=0, ACNO = 0;
while (rs.next()) {
ACNO = rs.getInt("Scholar_Number");
}
ACNO++;
acno = ACNO;
jTextField1.setText(""+acno);
} catch (SQLException ex) {
Logger.getLogger(STUDENT.class.getName()).log(Level.SEVERE, null, ex);
}
jTextField2.setText("");
jTextField3.setText("");
jTextField4.setText("");
jTextField5.setText("");
jTextField6.setText("");
jTextField7.setText("");
jTextField8.setText("");
jTextField9.setText("");
jTextField10.setText("");
}
23 | P a g e
private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {
JFileChooser img = new JFileChooser();
img.showOpenDialog(null);
File f=img.getSelectedFile();
String bite=f.getAbsolutePath();
ImageIcon icon=new ImageIcon(bite);
jLabel9.setIcon(icon);
s = bite;
ima = icon;
}
// Variables declaration - do not modify
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton3;
private javax.swing.JButton jButton4;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel10;
private javax.swing.JLabel jLabel11;
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.JLabel jLabel7;
private javax.swing.JLabel jLabel8;
private javax.swing.JLabel jLabel9;
private javax.swing.JTextField jTextField1;
private javax.swing.JTextField jTextField10;
private javax.swing.JTextField jTextField2;
private javax.swing.JTextField jTextField3;
private javax.swing.JTextField jTextField4;
private javax.swing.JTextField jTextField5;
private javax.swing.JTextField jTextField6;
private javax.swing.JTextField jTextField7;
private javax.swing.JTextField jTextField8;
private javax.swing.JTextField jTextField9;
// End of variables declaration
24 | P a g e
Frame: view_student_1.java
Coding for view_student_1.Java
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
public class view_student_1 extends javax.swing.JFrame {
Connection con= null;
Statement stm=null;
ResultSet rs= null;
String db= "jdbc:mysql://localhost/sarthak";
public view_student_1() throws SQLException {
initComponents();
try{
Class.forName("com.mysql.jdbc.Driver");
con=DriverManager.getConnection(db,"root","root");
stm=con.createStatement();}
catch (ClassNotFoundException | SQLException e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
25 | P a g e
new view_student().setVisible(true);
this.dispose();
}
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
new view_student_class().setVisible(true);
this.dispose();
}
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
new view_student_scholar().setVisible(true);
this.dispose();
}
private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {
new View_Student_Name().setVisible(true);
this.dispose();
}
private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {
try {
new LOGIN_1().setVisible(true);
} catch (ClassNotFoundException ex) {
Logger.getLogger(view_student_1.class.getName()).log(Level.SEVERE, null, ex);
}
this.dispose();
}
// Variables declaration - do not modify
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JButton jButton3;
private javax.swing.JButton jButton4;
private javax.swing.JButton jButton5;
// End of variables declaration
26 | P a g e
Frame: view_student.java
Coding of view_student.java :-
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
public class view_student extends javax.swing.JFrame {
Connection con= null;
Statement stm=null;
ResultSet rs= null;
String db= "jdbc:mysql://localhost/sarthak";
public view_student() {
initComponents();
try{
Class.forName("com.mysql.jdbc.Driver");
con=DriverManager.getConnection(db,"root","root");
stm=con.createStatement();}
catch (ClassNotFoundException | SQLException e)
27 | P a g e
{
JOptionPane.showMessageDialog(null,e.getMessage());
}}
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
DefaultTableModel tm= (DefaultTableModel) jTable1.getModel();
int x= tm.getRowCount();
for(int i=0;i<x;i++)
tm.removeRow(0);
}
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
try {
new view_student_1().setVisible(true);
} catch (SQLException ex) {
Logger.getLogger(view_student.class.getName()).log(Level.SEVERE, null, ex);
}
this.dispose();
}
private void formWindowGainedFocus(java.awt.event.WindowEvent evt) {
DefaultTableModel tm= (DefaultTableModel) jTable1.getModel();
try
{rs=stm.executeQuery("select * from student;");
int a;
String b,c,d,e,f,g,h,i,o;
while (rs.next()){
a=rs.getInt("Scholar_Number");
b=rs.getString("First_Name");
c=rs.getString("Last_Name");
d=rs.getString("Father_Name");
i=rs.getString("Class");
e=rs.getString("Mobile_Number");
f=rs.getString("Place");
g=rs.getString("Aadhar_Number");
h=rs.getString("Section");
o=rs.getString("Sex");
Object rec[]={a,b,c,d,i,h,e,f,g,o};
tm.addRow(rec);
28 | P a g e
}
rs.close();
}
catch (Exception e)
{ JOptionPane.showMessageDialog(null,e.getMessage());
}
}
// Variables declaration - do not modify
private javax.swing.JButton jButton2;
private javax.swing.JButton jButton3;
private javax.swing.JScrollPane jScrollPane1;
private javax.swing.JTable jTable1;
// End of variables declaration
29 | P a g e
Frame: view_student_class.java
Coding for view_student_class.java :-
import com.mysql.jdbc.Connection;
import com.mysql.jdbc.Statement;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
public class view_student_class extends javax.swing.JFrame {
Connection con= null;
Statement stm=null;
ResultSet rs= null;
String db= "jdbc:mysql://localhost/sarthak";
public view_student_class() {
initComponents();
try{
Class.forName("com.mysql.jdbc.Driver");
con=(Connection) DriverManager.getConnection(db,"root","root");
stm=(Statement) con.createStatement();}
catch (ClassNotFoundException | SQLException e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
30 | P a g e
}
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
DefaultTableModel tm= (DefaultTableModel) jTable1.getModel();
String l=jTextField1.getText();
String m=jTextField2.getText();
try
{rs=stm.executeQuery("select * from student where class='"+l+"' and section='"+m+"';");
int a;
String r,c,n,f,s,co,k,j;
while (rs.next()){
a=rs.getInt("Scholar_Number");
r=rs.getString("First_Name");
c=rs.getString("Last_Name");
n=rs.getString("Father_Name");
f=rs.getString("Class");
s=rs.getString("Mobile_Number");
co=rs.getString("Place");
k=rs.getString("Aadhar_Number");
j=rs.getString("Section");
Object rec[]={a,r,c,n,f,j,s,co,k};
tm.addRow(rec);
}
rs.close();
}
catch (Exception e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
DefaultTableModel tm= (DefaultTableModel) jTable1.getModel();
int x= tm.getRowCount();
for(int i=0;i<x;i++)
tm.removeRow(0);
jTextField1.setText("");
jTextField2.setText("");
31 | P a g e
}
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
try {
new view_student_1().setVisible(true);
} catch (SQLException ex) {
Logger.getLogger(view_student_class.class.getName()).log(Level.SEVERE, null, ex);
}
this.dispose();
}
private void jButton1KeyPressed(java.awt.event.KeyEvent evt) {
DefaultTableModel tm= (DefaultTableModel) jTable1.getModel();
String l=jTextField1.getText();
String m=jTextField2.getText();
try
{rs=stm.executeQuery("select * from student where class='"+l+"' and section='"+m+"';");
int a;
String r,c,n,f,s,co,k,j;
while (rs.next()){
a=rs.getInt("Scholar_Number");
r=rs.getString("First_Name");
c=rs.getString("Last_Name");
n=rs.getString("Father_Name");
f=rs.getString("Class");
s=rs.getString("Mobile_Number");
co=rs.getString("Place");
k=rs.getString("Aadhar_Number");
j=rs.getString("Section");
Object rec[]={a,r,c,n,f,j,s,co,k};
tm.addRow(rec);
}
rs.close();
}
catch (Exception e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}
private void jLabel3MouseClicked(java.awt.event.MouseEvent evt) {
32 | P a g e
System.exit(0);
}
// Variables declaration - do not modify
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JButton jButton3;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JScrollPane jScrollPane1;
private javax.swing.JTable jTable1;
private javax.swing.JTextField jTextField1;
private javax.swing.JTextField jTextField2;
// End of variables declaration
33 | P a g e
Frame: view_student_scholar.java
Coding for view_student_scholar.java :-
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
public class view_student_scholar extends javax.swing.JFrame {
Connection con= null;
Statement stm=null;
ResultSet rs= null;
String db= "jdbc:mysql://localhost/sarthak";
public view_student_scholar() {
initComponents();
try{
Class.forName("com.mysql.jdbc.Driver");
con=DriverManager.getConnection(db,"root","root");
stm=con.createStatement();}
catch (ClassNotFoundException | SQLException e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
34 | P a g e
DefaultTableModel tm= (DefaultTableModel) jTable1.getModel();
int x= tm.getRowCount();
for(int i=0;i<x;i++)
tm.removeRow(0);
jTextField1.setText("");
}
private void jTextField1KeyReleased(java.awt.event.KeyEvent evt) {
DefaultTableModel tm= (DefaultTableModel) jTable1.getModel();
String l=jTextField1.getText();
try
{rs=stm.executeQuery("select * from student where scholar_number='"+l+"';");
int a;
String r,c,n,f,s,co,k,j;
while (rs.next()){
a=rs.getInt("Scholar_Number");
r=rs.getString("First_Name");
c=rs.getString("Last_Name");
n=rs.getString("Father_Name");
f=rs.getString("Class");
s=rs.getString("Mobile_Number");
co=rs.getString("Place");
k=rs.getString("Aadhar_Number");
j=rs.getString("Section");
Object rec[]={a,r,c,n,f,j,s,co,k};
tm.addRow(rec);
}
rs.close();
}
catch (Exception e)
{ JOptionPane.showMessageDialog(null,e.getMessage());
}
if(l.equalsIgnoreCase(""))
{
int x= tm.getRowCount();
for(int i=0;i<x;i++)
35 | P a g e
tm.removeRow(0);
jTextField1.setText("");
}
}
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
try {
new view_student_1().setVisible(true);
} catch (SQLException ex) {
Logger.getLogger(view_student_scholar.class.getName()).log(Level.SEVERE, null,
ex);
}
this.dispose();
}
// Variables declaration - do not modify
private javax.swing.JButton jButton2;
private javax.swing.JButton jButton3;
private javax.swing.JLabel jLabel1;
private javax.swing.JScrollPane jScrollPane1;
private javax.swing.JTable jTable1;
private javax.swing.JTextField jTextField1;
// End of variables declaration
36 | P a g e
Frame: View_Student_Name.java
Coding of View_Student_Name.Java:-
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
public class View_Student_Name extends javax.swing.JFrame {
Connection con= null;
Statement stm=null;
ResultSet rs= null;
String db= "jdbc:mysql://localhost/sarthak";
public View_Student_Name() {
initComponents();
try{
Class.forName("com.mysql.jdbc.Driver");
con=DriverManager.getConnection(db,"root","root");
stm=con.createStatement();}
catch (ClassNotFoundException | SQLException e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
37 | P a g e
}
}
private void jTextField1KeyTyped(java.awt.event.KeyEvent evt) {
DefaultTableModel tm= (DefaultTableModel) jTable2.getModel();
String l=jTextField1.getText();
try
{rs=stm.executeQuery("select * from student where First_Name='"+l+"';");
int a;
String r,c,n,f,s,co,k,j;
while (rs.next()){
a=rs.getInt("Scholar_Number");
r=rs.getString("First_Name");
c=rs.getString("Last_Name");
n=rs.getString("Father_Name");
f=rs.getString("Class");
s=rs.getString("Mobile_Number");
co=rs.getString("Place");
k=rs.getString("Aadhar_Number");
j=rs.getString("Section");
Object rec[]={a,r,c,n,f,j,s,co,k};
tm.addRow(rec);
}
rs.close();
}
catch (Exception e)
{ JOptionPane.showMessageDialog(null,e.getMessage());
}
}
private void jTextField1KeyReleased(java.awt.event.KeyEvent evt) {
DefaultTableModel tm= (DefaultTableModel) jTable2.getModel();
String l=jTextField1.getText();
try
{rs=stm.executeQuery("select * from student where First_Name='"+l+"';");
int a;
String r,c,n,f,s,co,k,j;
while (rs.next()){
38 | P a g e
a=rs.getInt("Scholar_Number");
r=rs.getString("First_Name");
c=rs.getString("Last_Name");
n=rs.getString("Father_Name");
f=rs.getString("Class");
s=rs.getString("Mobile_Number");
co=rs.getString("Place");
k=rs.getString("Aadhar_Number");
j=rs.getString("Section");
Object rec[]={a,r,c,n,f,j,s,co,k};
tm.addRow(rec);
}
rs.close();
}
catch (Exception e)
{ JOptionPane.showMessageDialog(null,e.getMessage());
}
String t=jTextField1.getText();
if(t.equalsIgnoreCase(""))
{
int x= tm.getRowCount();
for(int i=0;i<x;i++)
tm.removeRow(0);
jTextField1.setText("");
}
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
DefaultTableModel tm= (DefaultTableModel) jTable2.getModel();
int x= tm.getRowCount();
for(int i=0;i<x;i++)
tm.removeRow(0);
jTextField1.setText("");
}
private void jButton1KeyPressed(java.awt.event.KeyEvent evt) {
DefaultTableModel tm= (DefaultTableModel) jTable2.getModel();
int x= tm.getRowCount();
for(int i=0;i<x;i++)
tm.removeRow(0);
39 | P a g e
jTextField1.setText("");
}
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
try {
new view_student_1().setVisible(true);
this.dispose();
} catch (SQLException ex) {
Logger.getLogger(View_Student_Name.class.getName()).log(Level.SEVERE, null, ex);
}
}
// Variables declaration - do not modify
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JLabel jLabel1;
private javax.swing.JScrollPane jScrollPane2;
private javax.swing.JTable jTable2;
private javax.swing.JTextField jTextField1;
// End of variables declaration
40 | P a g e
Frame: update_student.java
Coding for Update_Student.java
import java.awt.HeadlessException;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
public class update_student extends javax.swing.JFrame {
Connection con= null;
Statement stm=null;
Statement stm1=null;
ResultSet rs= null;
ResultSet rt=null;
String db= "jdbc:mysql://localhost/sarthak";
41 | P a g e
public update_student() {
initComponents();
try{
Class.forName("com.mysql.jdbc.Driver");
con=DriverManager.getConnection(db,"root","root");
stm=con.createStatement();}
catch (ClassNotFoundException | SQLException e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
String a=null;
a=jTextField1.getText();
String b=jTextField2.getText();
String c=jTextField3.getText();
String d=jTextField4.getText();
String h=jTextField5.getText();
String f=jTextField6.getText();
String g=jTextField7.getText();
String i=jTextField8.getText();
String j=jTextField9.getText();
String k=jTextField10.getText();
try{
stm.executeUpdate("update student set
First_Name='"+b+"',Last_Name='"+c+"',Father_Name='"+d+"',Class='"+h+"',Section='"+f+"',Mobile_N
umber='"+g+"',Place='"+i+"',Aadhar_Number='"+j+"',Sex='"+k+"' where Scholar_Number="+a+";");
JOptionPane.showMessageDialog(null,"Student Profile Update Successfully");
} catch (SQLException ex) {
Logger.getLogger(update_student.class.getName()).log(Level.SEVERE, null, ex);
}
}
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
try {
new LOGIN_1().setVisible(true);
this.dispose();
} catch (ClassNotFoundException ex) {
42 | P a g e
Logger.getLogger(update_student.class.getName()).log(Level.SEVERE, null, ex);
}
}
private void formWindowGainedFocus(java.awt.event.WindowEvent evt) {
jTextField2.setText("");
jTextField3.setText("");
jTextField4.setText("");
jTextField5.setText("");
jTextField6.setText("");
jTextField7.setText("");
jTextField8.setText("");
jTextField9.setText("");
jTextField1.setText("");
jTextField10.setText("");
}
private void jTextField1KeyPressed(java.awt.event.KeyEvent evt) {
try {
String y;
y=jTextField1.getText();
rs=stm.executeQuery("select * from student where Scholar_Number='"+y+"';");
String b,i,z;
String c,d,e,f,g,h,p;
while (rs.next()){
b=rs.getString("First_Name");
c=rs.getString("Last_Name");
d=rs.getString("Father_Name");
i=rs.getString("Class");
z=rs.getString("Mobile_Number");
f=rs.getString("Place");
g=rs.getString("Aadhar_Number");
h=rs.getString("Section");
p=rs.getString("Sex");
jTextField2.setText(""+b);
jTextField3.setText(""+c);
jTextField4.setText(""+d);
jTextField5.setText(""+i);
jTextField6.setText(""+h);
jTextField7.setText(""+z);
43 | P a g e
jTextField8.setText(""+f);
jTextField9.setText(""+g);
jTextField10.setText(""+p);
}
rs.close();
}
catch (Exception a)
{
JOptionPane.showMessageDialog(null,"Scholar Number Does Not Exist");
}
}
private void jTextField1KeyTyped(java.awt.event.KeyEvent evt) {
try {
String y;
y=jTextField1.getText();
rs=stm.executeQuery("select * from student where Scholar_Number='"+y+"';");
String b,i,z;
String c,d,e,f,g,h,p;
while (rs.next()){
b=rs.getString("First_Name");
c=rs.getString("Last_Name");
d=rs.getString("Father_Name");
i=rs.getString("Class");
z=rs.getString("Mobile_Number");
f=rs.getString("Place");
g=rs.getString("Aadhar_Number");
h=rs.getString("Section");
p=rs.getString("Sex");
jTextField2.setText(""+b);
jTextField3.setText(""+c);
jTextField4.setText(""+d);
jTextField5.setText(""+i);
jTextField6.setText(""+h);
jTextField7.setText(""+z);
jTextField8.setText(""+f);
jTextField9.setText(""+g);
jTextField10.setText(""+p);
}
44 | P a g e
rs.close();
}
catch (Exception a)
{
JOptionPane.showMessageDialog(null,"Scholar Number Does Not Exist");
}
String t=jTextField1.getText();
if(t.equalsIgnoreCase(""))
{
jTextField2.setText("");
jTextField3.setText("");
jTextField4.setText("");
jTextField5.setText("");
jTextField6.setText("");
jTextField7.setText("");
jTextField8.setText("");
jTextField9.setText("");
jTextField10.setText("");
}
}
private void jTextField1KeyReleased(java.awt.event.KeyEvent evt) {
try {
String y;
y=jTextField1.getText();
rs=stm.executeQuery("select * from student where Scholar_Number='"+y+"';");
String b,i,z;
String c,d,e,f,g,h,p;
while (rs.next()){
b=rs.getString("First_Name");
c=rs.getString("Last_Name");
d=rs.getString("Father_Name");
i=rs.getString("Class");
z=rs.getString("Mobile_Number");
f=rs.getString("Place");
g=rs.getString("Aadhar_Number");
h=rs.getString("Section");
p=rs.getString("Sex");
jTextField2.setText(""+b);
45 | P a g e
jTextField3.setText(""+c);
jTextField4.setText(""+d);
jTextField5.setText(""+i);
jTextField6.setText(""+h);
jTextField7.setText(""+z);
jTextField8.setText(""+f);
jTextField9.setText(""+g);
jTextField10.setText(""+p);
}
rs.close();
}
catch (Exception a)
{
JOptionPane.showMessageDialog(null,"Scholar Number Does Not Exist");
}
}
// Variables declaration - do not modify
private javax.swing.JButton jButton2;
private javax.swing.JButton jButton3;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel10;
private javax.swing.JLabel jLabel11;
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.JLabel jLabel7;
private javax.swing.JLabel jLabel8;
private javax.swing.JLabel jLabel9;
private javax.swing.JTextField jTextField1;
private javax.swing.JTextField jTextField10;
private javax.swing.JTextField jTextField2;
private javax.swing.JTextField jTextField3;
private javax.swing.JTextField jTextField4;
private javax.swing.JTextField jTextField5;
private javax.swing.JTextField jTextField6;
46 | P a g e
private javax.swing.JTextField jTextField7;
private javax.swing.JTextField jTextField8;
private javax.swing.JTextField jTextField9;
// End of variables declaration
47 | P a g e
Frame: staff.java
Coding for staff.java
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
public class staff extends javax.swing.JFrame {
Connection con= null;
Statement stm=null;
ResultSet rs= null;
String db= "jdbc:mysql://localhost/sarthak";
public staff() throws SQLException {
initComponents();
try{
Class.forName("com.mysql.jdbc.Driver");
con=DriverManager.getConnection(db,"root","root");
48 | P a g e
stm=con.createStatement();}
catch (ClassNotFoundException | SQLException e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
String a,b,c,d,h,f;
a=jTextField1.getText();
b=jTextField2.getText();
c=jTextField3.getText();
d=jTextField4.getText();
h=jTextField5.getText();
f=jTextField6.getText();
try
{
stm.executeUpdate("insert into staff values('"+a+"','"+b+"','"+c+"',"+d+",'"+h+"','"+f+"');");
JOptionPane.showMessageDialog(null,"Entry Added Successfully");
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
try {
new LOGIN_1().setVisible(true);
} catch (ClassNotFoundException ex) {
Logger.getLogger(staff.class.getName()).log(Level.SEVERE, null, ex);
}
this.dispose();
}
private void formWindowGainedFocus(java.awt.event.WindowEvent evt) {
try{
rs=stm.executeQuery("select emp_no from staff;");
int acno=0, ACNO = 0;
while (rs.next()) {
49 | P a g e
ACNO = rs.getInt("emp_no");
}
ACNO++;
acno = ACNO;
jTextField1.setText(""+acno);
} catch (SQLException ex)
{
Logger.getLogger(STUDENT.class.getName()).log(Level.SEVERE, null, ex);
}
jTextField2.setText("");
jTextField3.setText("");
jTextField4.setText("");
jTextField5.setText("");
jTextField6.setText("");
}
// Variables declaration - do not modify
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton3;
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.JTextField jTextField1;
private javax.swing.JTextField jTextField2;
private javax.swing.JTextField jTextField3;
private javax.swing.JTextField jTextField4;
private javax.swing.JTextField jTextField5;
private javax.swing.JTextField jTextField6;
// End of variables declaration
50 | P a g e
Frame: view_staff.java
Coding for view_staff.Java
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
public class view_staff extends javax.swing.JFrame {
Connection con= null;
Statement stm=null;
ResultSet rs= null;
String db= "jdbc:mysql://localhost/sarthak";
public view_staff() {
initComponents();
try{
Class.forName("com.mysql.jdbc.Driver");
con=DriverManager.getConnection(db,"root","root");
stm=con.createStatement();}
catch (ClassNotFoundException | SQLException e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}
51 | P a g e
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
new view_staff_1().setVisible(true);
this.dispose();
}
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
try {
new LOGIN_1().setVisible(true);
} catch (ClassNotFoundException ex) {
Logger.getLogger(view_staff.class.getName()).log(Level.SEVERE, null, ex);
}
this.dispose();
}
// Variables declaration - do not modify
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JButton jButton3;
// End of variables declaration
52 | P a g e
Frame: view_staff_1.java
Coding for view_staff_1.java
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
public class view_staff_1 extends javax.swing.JFrame {
Connection con= null;
Statement stm=null;
ResultSet rs= null;
String db= "jdbc:mysql://localhost/sarthak";
public view_staff_1() {
initComponents();
try{
Class.forName("com.mysql.jdbc.Driver");
con=DriverManager.getConnection(db,"root","root");
stm=con.createStatement();}
53 | P a g e
catch (ClassNotFoundException | SQLException e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
DefaultTableModel tm= (DefaultTableModel) jTable1.getModel();
int x= tm.getRowCount();
for(int i=0;i<x;i++)
tm.removeRow(0);
}
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
new view_staff().setVisible(true);
this.dispose();
}
private void formWindowGainedFocus(java.awt.event.WindowEvent evt) {
DefaultTableModel tm= (DefaultTableModel) jTable1.getModel();
try
{rs=stm.executeQuery("select * from staff;");
int a;
String b,c,d,e,f;
while (rs.next()){
a=rs.getInt("Emp_No");
b=rs.getString("Name");
c=rs.getString("designation");
d=rs.getString("Mobile_Number");
e=rs.getString("Address");
f=rs.getString("Aadhar_Number");
Object rec[]={a,b,c,d,e,f};
tm.addRow(rec);
}
rs.close();
}
catch (Exception e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
54 | P a g e
}
// Variables declaration - do not modify
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JButton jButton3;
private javax.swing.JScrollPane jScrollPane1;
private javax.swing.JTable jTable1;
// End of variables declaration
55 | P a g e
Frame: Update_staff.java
Coding for Update_Staff.java
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
public class Update_Staff extends javax.swing.JFrame {
Connection con= null;
Statement stm=null;
Statement stm1=null;
ResultSet rs= null;
ResultSet rt=null;
String db= "jdbc:mysql://localhost/sarthak";
public Update_Staff() {
initComponents();
try{
Class.forName("com.mysql.jdbc.Driver");
56 | P a g e
con=DriverManager.getConnection(db,"root","root");
stm=con.createStatement();}
catch (ClassNotFoundException | SQLException e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}
private void jTextField1KeyTyped(java.awt.event.KeyEvent evt) {
try {
String y;
y=jTextField1.getText();
rs=stm.executeQuery("select * from staff where emp_no='"+y+"';");
String b,i,z;
String c,d,e,f,g,h,p;
while (rs.next()){
b=rs.getString("Name");
c=rs.getString("designation");
d=rs.getString("Mobile_Number");
i=rs.getString("Address");
h=rs.getString("Aadhar_Number");
jTextField2.setText(""+b);
jTextField3.setText(""+c);
jTextField4.setText(""+d);
jTextField5.setText(""+i);
jTextField6.setText(""+h);
}
rs.close();
}
catch (Exception a)
{
JOptionPane.showMessageDialog(null,"Employee Does Not Exist");
}
57 | P a g e
}
private void jTextField1KeyReleased(java.awt.event.KeyEvent evt) {
try {
String y;
y=jTextField1.getText();
rs=stm.executeQuery("select * from staff where emp_no='"+y+"';");
String b,i,z;
String c,d,e,f,g,h,p;
while (rs.next()){
b=rs.getString("Name");
c=rs.getString("designation");
d=rs.getString("Mobile_Number");
i=rs.getString("Address");
h=rs.getString("Aadhar_Number");
jTextField2.setText(""+b);
jTextField3.setText(""+c);
jTextField4.setText(""+d);
jTextField5.setText(""+i);
jTextField6.setText(""+h);
}
rs.close();
}
catch (Exception a)
{
JOptionPane.showMessageDialog(null,"Scholar Number Does Not Exist");
}
String t=jTextField1.getText();
if(t.equalsIgnoreCase(""))
{
jTextField2.setText("");
jTextField3.setText("");
jTextField4.setText("");
jTextField5.setText("");
58 | P a g e
jTextField6.setText("");
}
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
String a=jTextField1.getText();
String b=jTextField2.getText();
String c=jTextField3.getText();
String d=jTextField4.getText();
String h=jTextField5.getText();
String f=jTextField6.getText();
try{
stm.executeUpdate("update staff set
Name='"+b+"',designation='"+c+"',Mobile_Number='"+d+"',Address='"+h+"' where
emp_no="+a+";");
JOptionPane.showMessageDialog(null,"Staff Profile Update Successfully");
} catch (SQLException ex) {
Logger.getLogger(update_student.class.getName()).log(Level.SEVERE, null, ex);
}
}
private void formWindowGainedFocus(java.awt.event.WindowEvent evt) {
jTextField2.setText("");
jTextField3.setText("");
jTextField4.setText("");
jTextField5.setText("");
jTextField6.setText("");
jTextField1.setText("");
}
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
try {
new LOGIN_1().setVisible(true);
} catch (ClassNotFoundException ex) {
Logger.getLogger(Update_Staff.class.getName()).log(Level.SEVERE, null, ex);
}
this.dispose();
}
// Variables declaration - do not modify
59 | P a g e
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.JTextField jTextField1;
private javax.swing.JTextField jTextField2;
private javax.swing.JTextField jTextField3;
private javax.swing.JTextField jTextField4;
private javax.swing.JTextField jTextField5;
private javax.swing.JTextField jTextField6;
// End of variables declaration
60 | P a g e
Frame: insert_class.java
Coding for insert_class.java
import java.awt.HeadlessException;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
public class insert_class extends javax.swing.JFrame {
Connection con= null;
Statement stm=null;
Statement stm1=null;
ResultSet rs= null;
ResultSet rt=null;
String db= "jdbc:mysql://localhost/sarthak";
public insert_class() {
initComponents();
try{
Class.forName("com.mysql.jdbc.Driver");
con=DriverManager.getConnection(db,"root","root");
61 | P a g e
stm=con.createStatement();}
catch (ClassNotFoundException | SQLException e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
jTextField1.setText("");
jTextField2.setText("");
jTextField3.setText("");
jTextField4.setText("");
jTextField5.setText("");
}
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
try {
new LOGIN_1().setVisible(true);
} catch (ClassNotFoundException ex) {
Logger.getLogger(insert_class.class.getName()).log(Level.SEVERE, null, ex);
}
this.dispose();
}
private void jTextField6KeyPressed(java.awt.event.KeyEvent evt) {
String c=jTextField1.getText();
String d=jTextField6.getText();
try{
rs=stm.executeQuery("select count(sex) from student where sex='m' AND class='"+c+"' and
section='"+d+"';");
while(rs.next()){
String b=rs.getString("count(sex)");
jTextField2.setText(""+b);
}
} catch (SQLException ex) {
Logger.getLogger(insert_class.class.getName()).log(Level.SEVERE, null, ex);
}
}
62 | P a g e
private void jTextField6KeyReleased(java.awt.event.KeyEvent evt) {
String c=jTextField1.getText();
String d=jTextField6.getText();
try{
rs=stm.executeQuery("select count(sex) from student where sex='m' AND class='"+c+"' and
section='"+d+"';");
while(rs.next()){
String b=rs.getString("count(sex)");
jTextField2.setText(""+b);
}
} catch (SQLException ex) {
Logger.getLogger(insert_class.class.getName()).log(Level.SEVERE, null, ex);
}
try{
rs=stm.executeQuery("select count(sex) from student where sex='F' AND class='"+c+"' and
section='"+d+"';");
while(rs.next()){
String b=rs.getString("count(sex)");
jTextField3.setText(""+b);
}
} catch (SQLException ex) {
Logger.getLogger(insert_class.class.getName()).log(Level.SEVERE, null, ex);
}
int e,f,g;
e=Integer.parseInt(jTextField2.getText());
f=Integer.parseInt(jTextField3.getText());
g=e+f;
jTextField4.setText(""+g);
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
String a,c,d,e;
String b,f;
a=jTextField1.getText();
63 | P a g e
c=jTextField2.getText();
b=jTextField6.getText();
d=jTextField3.getText();
e=jTextField4.getText();
f=jTextField5.getText();
try{
stm.executeUpdate("insert into class values("+a+",'"+b+"',"+c+","+d+","+e+",'"+f+"');");
JOptionPane.showMessageDialog(null,"Entry Added Successfully");
} catch (SQLException ex) {
Logger.getLogger(insert_class.class.getName()).log(Level.SEVERE, null, ex);
}
}
private void formWindowGainedFocus(java.awt.event.WindowEvent evt) {
jTextField1.setText("");
jTextField2.setText("");
jTextField3.setText("");
jTextField4.setText("");
jTextField5.setText("");
jTextField6.setText("");
}
// Variables declaration - do not modify
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JButton jButton3;
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.JLabel jLabel7;
private javax.swing.JTextField jTextField1;
private javax.swing.JTextField jTextField2;
private javax.swing.JTextField jTextField3;
private javax.swing.JTextField jTextField4;
private javax.swing.JTextField jTextField5;
private javax.swing.JTextField jTextField6;
// End of variables declaration
64 | P a g e
Frame: Fees.java
Coding for fees.java
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
65 | P a g e
public class fees extends javax.swing.JFrame {
Connection con= null;
Statement stm=null;
ResultSet rs= null;
String db= "jdbc:mysql://localhost/sarthak";
public fees() {
initComponents();
try{
Class.forName("com.mysql.jdbc.Driver");
con=DriverManager.getConnection(db,"root","root");
stm=con.createStatement();}
catch (ClassNotFoundException | SQLException e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}
private void formWindowGainedFocus(java.awt.event.WindowEvent evt) {
try{
rs=stm.executeQuery("select rcp_no from fees_paid;");
int acno=0, ACNO = 0;
while (rs.next()) {
ACNO = rs.getInt("rcp_no");
}
ACNO++;
acno = ACNO;
jTextField5.setText(""+acno);
} catch (SQLException ex) {
Logger.getLogger(fees.class.getName()).log(Level.SEVERE, null, ex);
}
jTextField2.setText("");
jTextField3.setText("");
jTextField4.setText("");
jTextField9.setText("");
jTextField6.setText("");
jTextField7.setText("");
jTextField10.setText("");
jTextField9.setText("");
66 | P a g e
Calendar a=Calendar.getInstance();
a.getTime();
SimpleDateFormat b=new SimpleDateFormat("dd/MM/yyyy HH:mm");
jLabel10.setText(b.format(a.getTime()));
}
private void jTextField1KeyReleased(java.awt.event.KeyEvent evt) {
try {
String y;
y=jTextField1.getText();
rs=stm.executeQuery("select * from student where Scholar_Number='"+y+"';");
String b,i,z;
String c,d,e,f,g,h,p;
while (rs.next()){
e=rs.getString("scholar_number");
b=rs.getString("First_Name");
c=rs.getString("Last_Name");
d=rs.getString("Class");
i=rs.getString("Mobile_Number");
p=rs.getString("Sex");
z=rs.getString("Section");
jTextField2.setText(b + " "+ c );
jTextField3.setText(d+" "+z);
jTextField4.setText(""+i);
jTextField6.setText(b + " "+ c);
jTextField7.setText(d+" "+z);
jTextField9.setText(""+e);
}
rs.close();
}
catch (Exception a)
{
JOptionPane.showMessageDialog(null,"Scholar Number Does Not Exist");
}
String t=jTextField1.getText();
if(t.equalsIgnoreCase(""))
{
jTextField2.setText("");
67 | P a g e
jTextField3.setText("");
jTextField4.setText("");
jTextField9.setText("");
jTextField6.setText("");
jTextField7.setText("");
jTextField10.setText("");
jTextField9.setText("");
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
String a,b,c,d,e,f;
a=jTextField5.getText();
b=jTextField9.getText();
c=jTextField6.getText();
d=jTextField7.getText();
e=jTextField8.getText();
f=jTextField10.getText();
try
{
stm.executeUpdate("insert into fees_paid
values("+a+","+b+",'"+c+"','"+d+"','"+e+"',"+f+");");
JOptionPane.showMessageDialog(null,"Fees Paid Successfully");
} catch (SQLException ex) {
Logger.getLogger(fees.class.getName()).log(Level.SEVERE, null, ex);
}
}
// Variables declaration - do not modify
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel10;
private javax.swing.JLabel jLabel11;
private javax.swing.JLabel jLabel12;
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.JLabel jLabel7;
68 | P a g e
private javax.swing.JLabel jLabel9;
private javax.swing.JSeparator jSeparator1;
private javax.swing.JTextField jTextField1;
private javax.swing.JTextField jTextField10;
private javax.swing.JTextField jTextField2;
private javax.swing.JTextField jTextField3;
private javax.swing.JTextField jTextField4;
private javax.swing.JTextField jTextField5;
private javax.swing.JTextField jTextField6;
private javax.swing.JTextField jTextField7;
private javax.swing.JTextField jTextField8;
private javax.swing.JTextField jTextField9;
// End of variables declaration
}
69 | P a g e
Frame: JFrame.java
Coding for JFrame.java
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
public class JFrame extends javax.swing.JFrame {
Connection con= null;
Statement stm=null;
Statement stm1=null;
ResultSet rs= null;
ResultSet rt=null;
String db= "jdbc:mysql://localhost/sarthak";
public JFrame() {
initComponents();
try{
Class.forName("com.mysql.jdbc.Driver");
con=DriverManager.getConnection(db,"root","root");
stm=con.createStatement();}
catch (ClassNotFoundException | SQLException e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}
70 | P a g e
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
try {
new paid_1().setVisible(true);
} catch (SQLException ex) {
Logger.getLogger(JFrame.class.getName()).log(Level.SEVERE, null, ex);
}
this.dispose();
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
new Fees_Paid().setVisible(true);
this.dispose();
}
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
new paid_search().setVisible(true);
this.dispose();
}
private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {
try {
new LOGIN_1().setVisible(true);
} catch (ClassNotFoundException ex) {
Logger.getLogger(JFrame.class.getName()).log(Level.SEVERE, null, ex);
}
this.dispose();
}
// Variables declaration - do not modify
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JButton jButton3;
private javax.swing.JButton jButton4;
// End of variables declaration
71 | P a g e
Frame: Fees_Paid.java
Coding for Fees_Paid.java
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
public class Fees_Paid extends javax.swing.JFrame {
Connection con= null;
Statement stm=null;
Statement stm1=null;
ResultSet rs= null;
ResultSet rt=null;
String db= "jdbc:mysql://localhost/sarthak";
public Fees_Paid() {
initComponents();
try{
Class.forName("com.mysql.jdbc.Driver");
72 | P a g e
con=DriverManager.getConnection(db,"root","root");
stm=con.createStatement();}
catch (ClassNotFoundException | SQLException e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}
private void formWindowGainedFocus(java.awt.event.WindowEvent evt) {
DefaultTableModel tm= (DefaultTableModel) jTable1.getModel();
try
{rs=stm.executeQuery("select * from fees_paid;");
int a;
String r,c,n,f,s,co,k,j;
while (rs.next()){
a=rs.getInt("rcp_no");
r=rs.getString("Scholar_number");
c=rs.getString("Name");
n=rs.getString("Class");
f=rs.getString("installment");
s=rs.getString("amonut");
co=rs.getString("Date");
Object rec[]={a,r,c,n,f,s,co};
tm.addRow(rec);
}
rs.close();
}
catch (Exception e)
{ JOptionPane.showMessageDialog(null,e.getMessage());
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
DefaultTableModel tm= (DefaultTableModel) jTable1.getModel();
int x= tm.getRowCount();
73 | P a g e
for(int i=0;i<x;i++)
tm.removeRow(0);
}
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
new JFrame().setVisible(true);
this.dispose();
}
// Variables declaration - do not modify
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JScrollPane jScrollPane1;
private javax.swing.JTable jTable1;
// End of variables declaration
74 | P a g e
Frame: paid_1.java
Coding for paid_1.java
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
public class paid_1 extends javax.swing.JFrame {
Connection con= null;
Statement stm=null;
Statement stm1=null;
ResultSet rs= null;
ResultSet rt=null;
String db= "jdbc:mysql://localhost/sarthak";
public paid_1() throws SQLException {
initComponents();
try{
Class.forName("com.mysql.jdbc.Driver");
con=DriverManager.getConnection(db,"root","root");
stm=con.createStatement();}
75 | P a g e
catch (ClassNotFoundException | SQLException e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
DefaultTableModel tm= (DefaultTableModel) jTable1.getModel();
int x= tm.getRowCount();
for(int i=0;i<x;i++)
tm.removeRow(0);
}
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
new JFrame().setVisible(true);
this.dispose();
}
private void jTextField1KeyReleased(java.awt.event.KeyEvent evt) {
DefaultTableModel tm= (DefaultTableModel) jTable1.getModel();
String l=jTextField1.getText();
try
{rs=stm.executeQuery("select * from fees_paid where name='"+l+"';");
int a;
String r,c,n,f,s,co,k,j;
while (rs.next()){
a=rs.getInt("rcp_no");
r=rs.getString("Scholar_number");
c=rs.getString("Name");
n=rs.getString("Class");
f=rs.getString("installment");
s=rs.getString("amonut");
co=rs.getString("Date");
Object rec[]={a,r,c,n,f,s,co};
tm.addRow(rec);
}
76 | P a g e
rs.close();
}
catch (Exception e)
{ JOptionPane.showMessageDialog(null,e.getMessage());
}
String t=jTextField1.getText();
if(t.equalsIgnoreCase(""))
{
int x= tm.getRowCount();
for(int i=0;i<x;i++)
tm.removeRow(0);
}
}
// Variables declaration - do not modify
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JButton jButton3;
private javax.swing.JLabel jLabel1;
private javax.swing.JScrollPane jScrollPane1;
private javax.swing.JTable jTable1;
private javax.swing.JTextField jTextField1;
// End of variables declaration
77 | P a g e
Frame: paid_search.java
Coding for paid_search.java
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
public class paid_search extends javax.swing.JFrame {
Connection con= null;
Statement stm=null;
Statement stm1=null;
ResultSet rs= null;
ResultSet rt=null;
String db= "jdbc:mysql://localhost/sarthak";
public paid_search() {
initComponents();
try{
78 | P a g e
Class.forName("com.mysql.jdbc.Driver");
con=DriverManager.getConnection(db,"root","root");
stm=con.createStatement();}
catch (ClassNotFoundException | SQLException e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
new JFrame().setVisible(true);
this.dispose();
}
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
DefaultTableModel tm= (DefaultTableModel) jTable1.getModel();
String l=jTextField1.getText();
try
{rs=stm.executeQuery("select * from fees_paid where class='"+l+"';");
int a;
String r,c,n,f,s,co,k,j;
while (rs.next()){
a=rs.getInt("rcp_no");
r=rs.getString("Scholar_number");
c=rs.getString("Name");
n=rs.getString("Class");
f=rs.getString("installment");
s=rs.getString("amonut");
co=rs.getString("Date");
Object rec[]={a,r,c,n,f,s,co};
tm.addRow(rec);
}
rs.close();
}
catch (Exception e)
79 | P a g e
{ JOptionPane.showMessageDialog(null,e.getMessage());
}
}
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
DefaultTableModel tm= (DefaultTableModel) jTable1.getModel();
int x= tm.getRowCount();
for(int i=0;i<x;i++)
tm.removeRow(0);
}
// Variables declaration - do not modify
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JButton jButton3;
private javax.swing.JLabel jLabel1;
private javax.swing.JScrollPane jScrollPane1;
private javax.swing.JTable jTable1;
private javax.swing.JTextField jTextField1;
// End of variables declaration
80 | P a g e
Frame: view_class.java
Coding for view_class.java
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
public class view_class extends javax.swing.JFrame {
Connection con= null;
Statement stm=null;
ResultSet rs= null;
String db= "jdbc:mysql://localhost/sarthak";
public view_class() {
initComponents();
try{
Class.forName("com.mysql.jdbc.Driver");
con=DriverManager.getConnection(db,"root","root");
81 | P a g e
stm=con.createStatement();}
catch (ClassNotFoundException | SQLException e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
try {
new LOGIN_1().setVisible(true);
} catch (ClassNotFoundException ex) {
Logger.getLogger(view_class.class.getName()).log(Level.SEVERE, null, ex);
}
this.dispose();
}
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
DefaultTableModel tm= (DefaultTableModel) jTable1.getModel();
int x= tm.getRowCount();
for(int i=0;i<x;i++)
tm.removeRow(0);
}
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
DefaultTableModel tm= (DefaultTableModel) jTable1.getModel();
try
{rs=stm.executeQuery("select * from class order by class;");
int a,c,n,f;
String r,s;
while (rs.next()){
a=rs.getInt("Class");
r=rs.getString("Section");
c=rs.getInt("Boys");
n=rs.getInt("Girls");
f=rs.getInt("Total");
s=rs.getString("Class_Teacher");
82 | P a g e
Object rec[]={a,r,c,n,f,s};
tm.addRow(rec);
}
rs.close();
}
catch (Exception e)
{ JOptionPane.showMessageDialog(null,e.getMessage());
}
}
// Variables declaration - do not modify
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JButton jButton3;
private javax.swing.JScrollPane jScrollPane1;
private javax.swing.JTable jTable1;
// End of variables declaration
83 | P a g e
Frame: staff_del.java
Coding for staff_del.java
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
public class staff_del extends javax.swing.JFrame {
Connection con= null;
Statement stm=null;
ResultSet rs= null;
String db= "jdbc:mysql://localhost/sarthak";
public staff_del() {
initComponents();
try{
Class.forName("com.mysql.jdbc.Driver");
con=(com.mysql.jdbc.Connection) DriverManager.getConnection(db,"root","root");
stm=(com.mysql.jdbc.Statement) con.createStatement();}
catch (ClassNotFoundException | SQLException e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
84 | P a g e
String a=jTextField1.getText();
String r=null;
try
{
rs=stm.executeQuery("select emp_no from staff;");
while(rs.next())
{
r=rs.getString("emp_no");
}
if(a.equals(r))
{
stm.executeUpdate("delete from STAFF where emp_no="+a+";");
JOptionPane.showMessageDialog(null,"Entry Deleted Successfully");
}
else
{
JOptionPane.showMessageDialog(null,"Not Entry Found By This Employ Number");
}
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
try {
new LOGIN_1().setVisible(true);
} catch (ClassNotFoundException ex) {
Logger.getLogger(staff_del.class.getName()).log(Level.SEVERE, null, ex);
}
this.dispose();
}
// Variables declaration - do not modify
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
85 | P a g e
private javax.swing.JLabel jLabel1;
private javax.swing.JTextField jTextField1;
// End of variables declaration
86 | P a g e
7. User Manual
7.1 How to installSoftware:
Hardware Requirement-
 PC with Updated OS and Processors
 1 GB RAM and 250 GB HDD space( for Database) is desirable
 Standard I/O devices like Keyboard and Mouse etc.
 Printer is needed for hard-copy reports.
 Local Area Network(LAN) is required for Client-Server Installation
Software Requirement-
 Windows XP/7/8 OS is desirable
 Netbeans ver 8.1 or higher should be installed with JDK and JVM
 MySQL Ver 5.1
Database Installation-
The software project is distributed with a backup copy of a Database named sarthak with
required tables. Some dummy records are present in the tables for testing purposes, which can be
deleted before inserting real data. The project is shipped with sarthak.SQL file which installs a
database and tables in the computer system.
Note: The PC must have MySQL server with user (root) and password (root) . If root password
is any other password, it can be changed by running MySQL Server Instance Configure Wizard.
Start Program  MySQL MySQL Server MySQL Server Instance Config Wizard
Provide current password of root and new password as “root” , this will change the root
password.
To install a MySQL database from a dump file ( sarthak.sql) , simply follow the following
steps.
Step 1: Copy the sarthak.sql file in C:Program filesMysqlMySql server 5.1Bin folder.
Step 2: Open MySQL and type the following command to create the dabase named Library.
mysql> create database sarthak;
Step 3: Open Command Window (Start Run  cmd)
Step 4: Go to the following folder using CD command of DOS.
C:Program filesMysqlMySql server 5.1Bin>
87 | P a g e
Step 5: type the following command on above prompt -
C:….bin> mysql -u root -proot sarthak < sarthak.sql
This will create a Library databse with required tables.
88 | P a g e
8. References
In order to work on this project titled –School Management, the following books and literature
are refered by me during the various phases of development of the project.
1. Information Pratices
by Sumitra Arora
2. Arihant Publication
3. NCERT & KVS Notes
4. www.w3schools.com
5. www.google.co.in
6. cbse.nic.in
7. www.mycbseguide.com

More Related Content

What's hot

student mangement
student mangementstudent mangement
student mangementAditya Gaud
 
BANK MANAGEMENT SYSTEM report
BANK MANAGEMENT SYSTEM reportBANK MANAGEMENT SYSTEM report
BANK MANAGEMENT SYSTEM report
Nandana Priyanka Eluri
 
Project for Student Result System
Project for Student Result SystemProject for Student Result System
Project for Student Result System
KuMaR AnAnD
 
Introduction and objectives of the project
Introduction and objectives of the projectIntroduction and objectives of the project
Introduction and objectives of the projectrihan696
 
SYNOPSIS ON BANK MANAGEMENT SYSTEM
SYNOPSIS ON BANK MANAGEMENT SYSTEMSYNOPSIS ON BANK MANAGEMENT SYSTEM
SYNOPSIS ON BANK MANAGEMENT SYSTEMNitish Xavier Tirkey
 
Final Project Report of College Management System
Final Project Report of College Management SystemFinal Project Report of College Management System
Final Project Report of College Management System
MuhammadHusnainRaza
 
Student management system
Student management systemStudent management system
Student management systemGaurav Subham
 
Hostel management project_report
Hostel management project_reportHostel management project_report
Hostel management project_report
kawsher11
 
Software Requirements Specification on Student Information System (SRS on SIS)
Software Requirements Specification on Student Information System (SRS on SIS)Software Requirements Specification on Student Information System (SRS on SIS)
Software Requirements Specification on Student Information System (SRS on SIS)
Minhas Kamal
 
Result management system
Result management systemResult management system
Result management system
Technical Hub
 
College Management System project
College Management System projectCollege Management System project
College Management System project
Manish Kushwaha
 
Result Management System - CSE Final Year Projects
Result Management System - CSE Final Year ProjectsResult Management System - CSE Final Year Projects
Result Management System - CSE Final Year Projects
Jubair Hossain
 
Student result mamagement
Student result mamagementStudent result mamagement
Student result mamagementMickey
 
Hostel Management system Report
Hostel Management system ReportHostel Management system Report
Hostel Management system Report
Prasoon Rawat
 
School fee-management-system
School fee-management-systemSchool fee-management-system
School fee-management-system
Jitendra Shrestha
 
College Management System
College Management SystemCollege Management System
College Management System
Swapna Subhadarsini
 
Project report-on-student-information-management-system-php-mysql
Project report-on-student-information-management-system-php-mysqlProject report-on-student-information-management-system-php-mysql
Project report-on-student-information-management-system-php-mysqlRaj Sharma
 
15.project attendence managemnt system
15.project attendence managemnt system15.project attendence managemnt system
15.project attendence managemnt systemHaseeb Nasir
 
Campus Management System
Campus Management SystemCampus Management System
Campus Management System
Asif Hussain
 
School Management System
School Management SystemSchool Management System
School Management System
Northeastern University
 

What's hot (20)

student mangement
student mangementstudent mangement
student mangement
 
BANK MANAGEMENT SYSTEM report
BANK MANAGEMENT SYSTEM reportBANK MANAGEMENT SYSTEM report
BANK MANAGEMENT SYSTEM report
 
Project for Student Result System
Project for Student Result SystemProject for Student Result System
Project for Student Result System
 
Introduction and objectives of the project
Introduction and objectives of the projectIntroduction and objectives of the project
Introduction and objectives of the project
 
SYNOPSIS ON BANK MANAGEMENT SYSTEM
SYNOPSIS ON BANK MANAGEMENT SYSTEMSYNOPSIS ON BANK MANAGEMENT SYSTEM
SYNOPSIS ON BANK MANAGEMENT SYSTEM
 
Final Project Report of College Management System
Final Project Report of College Management SystemFinal Project Report of College Management System
Final Project Report of College Management System
 
Student management system
Student management systemStudent management system
Student management system
 
Hostel management project_report
Hostel management project_reportHostel management project_report
Hostel management project_report
 
Software Requirements Specification on Student Information System (SRS on SIS)
Software Requirements Specification on Student Information System (SRS on SIS)Software Requirements Specification on Student Information System (SRS on SIS)
Software Requirements Specification on Student Information System (SRS on SIS)
 
Result management system
Result management systemResult management system
Result management system
 
College Management System project
College Management System projectCollege Management System project
College Management System project
 
Result Management System - CSE Final Year Projects
Result Management System - CSE Final Year ProjectsResult Management System - CSE Final Year Projects
Result Management System - CSE Final Year Projects
 
Student result mamagement
Student result mamagementStudent result mamagement
Student result mamagement
 
Hostel Management system Report
Hostel Management system ReportHostel Management system Report
Hostel Management system Report
 
School fee-management-system
School fee-management-systemSchool fee-management-system
School fee-management-system
 
College Management System
College Management SystemCollege Management System
College Management System
 
Project report-on-student-information-management-system-php-mysql
Project report-on-student-information-management-system-php-mysqlProject report-on-student-information-management-system-php-mysql
Project report-on-student-information-management-system-php-mysql
 
15.project attendence managemnt system
15.project attendence managemnt system15.project attendence managemnt system
15.project attendence managemnt system
 
Campus Management System
Campus Management SystemCampus Management System
Campus Management System
 
School Management System
School Management SystemSchool Management System
School Management System
 

Similar to Java Project "JPS-School Management System" CBSE AISSCE Pratical Examination 2017-18 CBSE Class 12 Information Pratices(I.P)

Project report
Project reportProject report
Project report
VISHAL VERMA
 
Clothing Store and Management System
Clothing Store and Management SystemClothing Store and Management System
Clothing Store and Management System
Ashwini0951
 
IP PROJECT FILE
IP PROJECT FILEIP PROJECT FILE
IP PROJECT FILE
Shubham5Oct
 
Vade Meccum_Book reading and publishing software NetBeans.docx
Vade Meccum_Book reading and publishing software NetBeans.docxVade Meccum_Book reading and publishing software NetBeans.docx
Vade Meccum_Book reading and publishing software NetBeans.docx
GeetaShreeprabha
 
class 12 board project on database connectivity (java to SQL)
class 12 board project on database connectivity (java to SQL)class 12 board project on database connectivity (java to SQL)
class 12 board project on database connectivity (java to SQL)
gaurav kumar
 
Documentation project of college management [1]
Documentation project of college management [1]Documentation project of college management [1]
Documentation project of college management [1]
Priyaranjan Verma
 
Project report
Project report Project report
Project report
MansiKulkarni18
 
Ems
EmsEms
Student database management system
Student database management systemStudent database management system
Student database management systemSnehal Raut
 
IP final project
IP final project IP final project
IP final project
SantySS
 
Online examination management system..pdf
Online examination management system..pdfOnline examination management system..pdf
Online examination management system..pdf
Kamal Acharya
 
13.project core banking system
13.project core banking system 13.project core banking system
13.project core banking system
Birjesh Kumar
 
SCHOOL_MANAGEMENT_SYSTEM_This_Report_Pre.doc
SCHOOL_MANAGEMENT_SYSTEM_This_Report_Pre.docSCHOOL_MANAGEMENT_SYSTEM_This_Report_Pre.doc
SCHOOL_MANAGEMENT_SYSTEM_This_Report_Pre.doc
bosed0737
 
Database Engine Control though Web Portal Monitoring Configuration
Database Engine Control though Web Portal Monitoring ConfigurationDatabase Engine Control though Web Portal Monitoring Configuration
Database Engine Control though Web Portal Monitoring Configuration
IRJET Journal
 
Ch # 11
Ch # 11Ch # 11
IRJET- Training and Placement Database Management System
IRJET- Training and Placement Database Management SystemIRJET- Training and Placement Database Management System
IRJET- Training and Placement Database Management System
IRJET Journal
 
Bank Management System Desktop Application
Bank Management System Desktop Application Bank Management System Desktop Application
Bank Management System Desktop Application
Ibadullah Khan
 
Notespane - A community based learning system
Notespane - A community based learning systemNotespane - A community based learning system
Notespane - A community based learning system
IRJET Journal
 
Ignou MCA 6th Semester Synopsis
Ignou MCA 6th Semester SynopsisIgnou MCA 6th Semester Synopsis
Ignou MCA 6th Semester Synopsis
Hitesh Jangid
 

Similar to Java Project "JPS-School Management System" CBSE AISSCE Pratical Examination 2017-18 CBSE Class 12 Information Pratices(I.P) (20)

Project report
Project reportProject report
Project report
 
Clothing Store and Management System
Clothing Store and Management SystemClothing Store and Management System
Clothing Store and Management System
 
IP PROJECT FILE
IP PROJECT FILEIP PROJECT FILE
IP PROJECT FILE
 
Vade Meccum_Book reading and publishing software NetBeans.docx
Vade Meccum_Book reading and publishing software NetBeans.docxVade Meccum_Book reading and publishing software NetBeans.docx
Vade Meccum_Book reading and publishing software NetBeans.docx
 
class 12 board project on database connectivity (java to SQL)
class 12 board project on database connectivity (java to SQL)class 12 board project on database connectivity (java to SQL)
class 12 board project on database connectivity (java to SQL)
 
Documentation project of college management [1]
Documentation project of college management [1]Documentation project of college management [1]
Documentation project of college management [1]
 
Project report
Project report Project report
Project report
 
Ems
EmsEms
Ems
 
Student database management system
Student database management systemStudent database management system
Student database management system
 
Fulltext01
Fulltext01Fulltext01
Fulltext01
 
IP final project
IP final project IP final project
IP final project
 
Online examination management system..pdf
Online examination management system..pdfOnline examination management system..pdf
Online examination management system..pdf
 
13.project core banking system
13.project core banking system 13.project core banking system
13.project core banking system
 
SCHOOL_MANAGEMENT_SYSTEM_This_Report_Pre.doc
SCHOOL_MANAGEMENT_SYSTEM_This_Report_Pre.docSCHOOL_MANAGEMENT_SYSTEM_This_Report_Pre.doc
SCHOOL_MANAGEMENT_SYSTEM_This_Report_Pre.doc
 
Database Engine Control though Web Portal Monitoring Configuration
Database Engine Control though Web Portal Monitoring ConfigurationDatabase Engine Control though Web Portal Monitoring Configuration
Database Engine Control though Web Portal Monitoring Configuration
 
Ch # 11
Ch # 11Ch # 11
Ch # 11
 
IRJET- Training and Placement Database Management System
IRJET- Training and Placement Database Management SystemIRJET- Training and Placement Database Management System
IRJET- Training and Placement Database Management System
 
Bank Management System Desktop Application
Bank Management System Desktop Application Bank Management System Desktop Application
Bank Management System Desktop Application
 
Notespane - A community based learning system
Notespane - A community based learning systemNotespane - A community based learning system
Notespane - A community based learning system
 
Ignou MCA 6th Semester Synopsis
Ignou MCA 6th Semester SynopsisIgnou MCA 6th Semester Synopsis
Ignou MCA 6th Semester Synopsis
 

Recently uploaded

Large Language Models and the End of Programming
Large Language Models and the End of ProgrammingLarge Language Models and the End of Programming
Large Language Models and the End of Programming
Matt Welsh
 
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
informapgpstrackings
 
Understanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSageUnderstanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSage
Globus
 
De mooiste recreatieve routes ontdekken met RouteYou en FME
De mooiste recreatieve routes ontdekken met RouteYou en FMEDe mooiste recreatieve routes ontdekken met RouteYou en FME
De mooiste recreatieve routes ontdekken met RouteYou en FME
Jelle | Nordend
 
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
XfilesPro
 
Corporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMSCorporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMS
Tendenci - The Open Source AMS (Association Management Software)
 
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Globus
 
First Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User EndpointsFirst Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User Endpoints
Globus
 
Software Testing Exam imp Ques Notes.pdf
Software Testing Exam imp Ques Notes.pdfSoftware Testing Exam imp Ques Notes.pdf
Software Testing Exam imp Ques Notes.pdf
MayankTawar1
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
Paco van Beckhoven
 
Accelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with PlatformlessAccelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with Platformless
WSO2
 
2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx
Georgi Kodinov
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Globus
 
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERRORTROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
Tier1 app
 
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Globus
 
top nidhi software solution freedownload
top nidhi software solution freedownloadtop nidhi software solution freedownload
top nidhi software solution freedownload
vrstrong314
 
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Shahin Sheidaei
 
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdfDominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
AMB-Review
 
Using IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New ZealandUsing IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New Zealand
IES VE
 
Lecture 1 Introduction to games development
Lecture 1 Introduction to games developmentLecture 1 Introduction to games development
Lecture 1 Introduction to games development
abdulrafaychaudhry
 

Recently uploaded (20)

Large Language Models and the End of Programming
Large Language Models and the End of ProgrammingLarge Language Models and the End of Programming
Large Language Models and the End of Programming
 
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
 
Understanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSageUnderstanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSage
 
De mooiste recreatieve routes ontdekken met RouteYou en FME
De mooiste recreatieve routes ontdekken met RouteYou en FMEDe mooiste recreatieve routes ontdekken met RouteYou en FME
De mooiste recreatieve routes ontdekken met RouteYou en FME
 
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
 
Corporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMSCorporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMS
 
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
 
First Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User EndpointsFirst Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User Endpoints
 
Software Testing Exam imp Ques Notes.pdf
Software Testing Exam imp Ques Notes.pdfSoftware Testing Exam imp Ques Notes.pdf
Software Testing Exam imp Ques Notes.pdf
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
 
Accelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with PlatformlessAccelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with Platformless
 
2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
 
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERRORTROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
 
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
 
top nidhi software solution freedownload
top nidhi software solution freedownloadtop nidhi software solution freedownload
top nidhi software solution freedownload
 
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
 
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdfDominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
 
Using IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New ZealandUsing IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New Zealand
 
Lecture 1 Introduction to games development
Lecture 1 Introduction to games developmentLecture 1 Introduction to games development
Lecture 1 Introduction to games development
 

Java Project "JPS-School Management System" CBSE AISSCE Pratical Examination 2017-18 CBSE Class 12 Information Pratices(I.P)

  • 1. 1 | P a g e JAIN PUBLIC SCHOOL, BARNAGAR 2017-18 A Project Report on JPS - School Management System For AISSCE 2017-18 Examination [As a part of the Informatics Practices Course (065)] SUBMITTED BY Sarthak Khabiya [Roll No ] Under the Guidance of: Mr. Vijay Soni PGT (Comp.Sc)
  • 2. 2 | P a g e JAIN PUBLIC SCHOOL DEPARTMENT OF COMPUTER CERTIFICATE This is to certify that the Project entitled JPS-School Managment System is a bonafide work done by Master Sarthak Khabiya of class XII Session 2017-18 in partial fulfillment of CBSE’s AISSCE Examination 2018 and has been carried out under my direct supervision and guidance. This report or a similar report on the topic has not been submitted for any other examination and does not form a part of any other course undergone by the candidate. ………………………… …………………………….. Signature of External Signature of Teacher/Guide Name: Name: Vijay Soni Code: Designation: PGT (Comp.Sc.)
  • 3. 3 | P a g e ACKNOWLEDGEMENT undertook this Project work, as the part of my XII-Informatics Practices course. I had tried to apply my best of knowledge and experience, gained during the study and class work experience. However, developing software system is generally a quite complex and time- consuming process. It requires a systematic study, insight vision and professional approach during the design and development. Moreover, the developer always feels the need, the help and good wishes of the people near you, who have considerable experience and idea. I would like to extend my sincere thanks and gratitude to my teacher Mr. Vijay Soni I am very much thankful to our Principal Mr. Satanand Dubey for giving valuable time and moral support to develop this software. I would like to take the opportunity to extend my sincere thanks and gratitude to my father Mr. Sanjay Khabiya, and my mother Mrs. Rajkumari Khabiya for being a source of inspiration and providing time and freedom to develop this software project. I also feel indebted to my friends Miss. Khushi Tongya and Master. Siddharth Choudhary for the valuable suggestions during the project work. Sarthak Khabiya Class XII (Science) I
  • 4. 4 | P a g e C O N T E N T S 1. Introduction---------------------------------------------------------------- 5 2. Theoretical Background ----------------------------------------------- 6 3. Objective & Scope of the Project ----------------------------------- 7 4. Problem Definition & Analysis--------------------------------------- 9 5. System Implementation-----------------------------------------------10 5.1 The Hardware used: -------------------------------------------------10 5.2 The Softwares used: -------------------------------------------------10 6. System Design & Development ---------------------------------- 111 6.1 Database Design:-----------------------------------------------------11 6.2 I/O Forms Design & Event Coding:-------------------------------11 7. User Manual---------------------------------------------------------------86 7.1 How to install: ---------------------------------------------------------86 7.2 Working with Software:----------------------------------------------86 8. References ---------------------------------------------------------------88
  • 5. 5 | P a g e 1. Introduction This software project is developed to automate the functionalities of a School Management.The purpose of the software project is to develop the Management Information System (MIS) to automate the record keeping of School. A MIS mainly consists of a computerized database, a collection of inter- related tables for particular items, capable to produce different reports relevant to the user. An application program is tied with the database for easy access and interface to the database. Using Application program or front-end, we can store, retrieve and manage all information in proper way. This software, being simple in design and working, does not require much of training to users, and can be used as a powerful tool for automating a School Management System. During coding and design of the software Project, Java NetBeans IDE, a powerful front-end tool is used for getting Graphical User Interface (GUI) based integrated platform and coding simplicity. As a back-end a powerful, open source RDBMS, My SQL is used as per requirement of the CBSE curriculum of Informatics Practices Course.
  • 6. 6 | P a g e 2. Objective & Scope of the Project he objective of the software project is to develop a computerized MIS to enchanced the working of School. This software project is also aimed to enhance the keeping current record of school, which will help managers to retrieve the up-to-date information at right time in right shape. Objective are as following:-  Keeping well upto date record of the school.  Remove the duplication of the records.  Enchanced the fast working of school.  Maintaining the Proper School Fee Record. During the development of School Management System project, Java NetBeans IDE, a powerful, open source event-driven form-based development environment is used for modular design and future expandability of the system. Despite of the best effort , the following limitations and functional boundaries are visible, which limits the scope of this application software. 1. This software can store records and produce reports in pre-designed format in soft copy. There is no facility yet to produce customized reports. Only specified reports are covered. 2. Some application area like salary of staff and another expense etc. are not implemented in the project. It facilitates school to record and update only transaction record. 3. Any part of the project can modify the easily without any much more effort... 4. This software does not require much training time of the users due to limited functionality and simplicity T
  • 7. 7 | P a g e 3. Theoretical Background 3.1 What is Database? Introduction and Concepts: A database is a collection of information related to a particular subject or purpose, such as tracking customer orders or maintaining a music collection. Using any RDBMS application software like MS SQL Server, MySQL, Oracle, Sybase etc, we can manage all your information from a single database file. Within the file, divide your data into separate storage containers called tables. You may and retrieve the data using queries. A table is a collection of data about a specific topic, such as scholar number or class. Using a separate table for each topic means you can store that data only once, which makes your database more efficient and reduces data-entry errors. Table organises data into columns (called fields) and rows (called records). Role of RDBMS Application Program:  Creating of a table, addition, deletion, modification of records.  Retrieving data collectively or selectively.  The data stored can be sorted or indexed at the user's discretion and direction.  Various reports can be produced from the system. These may be either standardized report or that may be specifically generated according to specific user definition.  Mathematical functions can be performed and the data stored in the database can be manipulated with these functions to perform the desired calculations.  To maintain data integrity and database use. The RDBMS interprets and processes users' requests to retrieve information from a database. In most cases, a query request will have to penetrate several layers of software in the RDBMS and operating system before the physical database can be accessed. The RDBMS responds to a query by invoking the appropriate subprograms, each of which performs its special function to interpret the query, or to locate the desired data in the database and present it in the desired order. 3.2 MySQL :- The management of data in a database system is done by means of a general-purpose software package called a Database Management System (DBMS). Some commercially available RDBMS are MySQL Server, MS ACCESS, ORACLE. MySQL, the most popular Open Source SQL database management system, is developed, distributed, and supported by Oracle Corporation. MySQL is named after co-founder Monty Widenius's daughter, My. The name of the MySQL Dolphin ( logo) is “Sakila,”.
  • 8. 8 | P a g e  MySQL is a database management system.  MySQL is based on SQL.  MySQL software is Open Source.  The MySQL Database Server is very fast, reliable, and easy to use.  MySQL Server works in client/server or embedded systems. The Main Features of MySQL  Works on many different platforms.  Uses multi-layered server design with independent modules. .  Easy to Maintain the Record
  • 9. 9 | P a g e 4. Problem Definition & Analysis The hardest part of building a software system is deciding precisely what to build. Activities related to problem are the following:  Identification and documentation of customer’s or user’s needs.  Analysis and validation of the requirements documents to ensure consistency, completeness, and feasibility  Evolution of needs. After the analysis of the functioning of a School Management, the proposed System is expected to do the following: -  The proposed system should maintain all the records and transactions, and should generate the required reports and information when required.  To provide efficient and secured Information storage, flow and retrieval system, ensuring the integrity and validity of records.  To provide graphical and user-friendly interface to interact with a centralized database based on client-server architecture.  To identify the critical operation procedure and possibilities of simplification using modern IT tools and practices.
  • 10. 10 | P a g e 5. System Implementation 5.1 The Hardware used: While developing the system, the used hardware are: PC with ADM 2.0 GHz processor having 4 GB RAM and other required devices. 5.2 The Softwares used:  Microsoft Windows7 as Operating System.  Java NetBeans 7 as Front-end Development environment.  MySQL as Back-end Sever with Database for Testing.  MS-Word 2007 for documentation.
  • 11. 11 | P a g e 6. System Design & Development 6.1 Database Design: An important aspect of system design is the design of data storage structure. To begin with a logical model of data structure is developed first. A database is a container object which contains tables, queries, reports and data validation policies enforcement rules or contraints etc. A logical data often represented as a records are kept in different tables after reducing anomalies and redundancies. The goodness of data base design lies in the table structure and its relationship. This software project maintains a database named sarthak which contains the following tables. 6.2 Table Design: The database of sarthak contains 6 tables. The tables are normalized to minimize the redundancies of data and enforcing the validation rules of the organization. Most of the tables are designed to store master records. The tables and their structure are given below. Table: Student Column Name Type Size Scholar_Number (Primary Key) Char 20 First_Name Char 50 Last_Name Char 50 Father_Name Char 50 Class Char 50 Mobile_Number Varchar 20 Place Char 50 Aadhar_Number (Unique Key) Char 20 Section Char 10 Sex Char 20 Table: Student_image Column Name Type Size Scholar_Number (Primary Key) Integer 11 Image BLOB Table: Staff Column Name Type Size Emp_No (Unique Key) Integer 4 Name Char 80 Designation Char 40 Mobile_Number Char 20 Address Char 150 Aadhar_Number Char 20 MFee Float(8,2) 4
  • 12. 12 | P a g e Table: Fees_paid Column Name Type Size rcp_no Integer 20 scholar_number Integer 20 Name Char 30 Class Char 30 installment Char 10 amount int 30 date Date Table: feesstructure Column Name Type Size Class Char 20 Installment Char 10 Amt Char 30 Table: Login Column Name Type Size username varChar 15 password Char 15
  • 13. 13 | P a g e 6.2 I/O Forms Design & Event Coding: The software project for School Management contains various forms along with programming codes. Forms (JFrames) and their event coding are given below. Frame: Main.java private void formWindowGainedFocus(java.awt.event.WindowEvent evt) { new LOGIN().setVisible(true); }
  • 14. 14 | P a g e Frame: LOGIN.java Coding for LOGIN.java:- import com.mysql.jdbc.Connection; import com.mysql.jdbc.Statement; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import javax.swing.JOptionPane; public class LOGIN extends javax.swing.JFrame { Connection con= null; Statement stm=null; ResultSet rs= null; String db= "jdbc:mysql://localhost/sarthak"; /** * Creates new form LOGIN */ public LOGIN() { initComponents(); try{ Class.forName("com.mysql.jdbc.Driver"); con=(Connection) DriverManager.getConnection(db,"root","root"); stm=(Statement) con.createStatement();} catch (ClassNotFoundException | SQLException e) { JOptionPane.showMessageDialog(null,e.getMessage());
  • 15. 15 | P a g e } } private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { String user=jTextField1.getText(); String pass=new String(jPasswordField1.getPassword()); String ur=null, ps=null; try { rs=stm.executeQuery("select * from login;"); while(rs.next()) { ur=rs.getString("username"); ps=rs.getString("password"); } if (user.equals(ur)&& pass.equals(ps)) { new LOGIN_1().setVisible(true); this.dispose(); } else { JOptionPane.showMessageDialog(null,"Invalide User or Password"); } } catch (Exception e) { JOptionPane.showMessageDialog(null,e.getMessage()); } } private javax.swing.JButton jButton1; private javax.swing.JLabel jLabel1; private javax.swing.JLabel jLabel2; private javax.swing.JLabel jLabel3; private javax.swing.JPanel jPanel1; private javax.swing.JPasswordField jPasswordField1; private javax.swing.JTextField jTextField1;
  • 16. 16 | P a g e Frame: LOGIN_1.java Coding of LOGIN_1.java import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.JOptionPane;
  • 17. 17 | P a g e public class LOGIN_1 extends javax.swing.JFrame { Connection con= null; Statement stm=null; ResultSet rs= null; String db= "jdbc:mysql://localhost/sarthak"; public LOGIN_1() throws ClassNotFoundException { initComponents(); try{ Class.forName("com.mysql.jdbc.Driver"); con=DriverManager.getConnection(db,"root","root"); stm=con.createStatement();} catch (SQLException e) { JOptionPane.showMessageDialog(null,e.getMessage()); } } private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { try { new STUDENT().setVisible(true); } catch (SQLException ex) { Logger.getLogger(LOGIN_1.class.getName()).log(Level.SEVERE, null, ex); } this.dispose(); } private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) { try { new view_student_1().setVisible(true); } catch (SQLException ex) { Logger.getLogger(LOGIN_1.class.getName()).log(Level.SEVERE, null, ex); } this.dispose(); } private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) { try { new staff().setVisible(true);
  • 18. 18 | P a g e } catch (SQLException ex) { Logger.getLogger(LOGIN_1.class.getName()).log(Level.SEVERE, null, ex); } this.dispose(); } private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) { new view_staff().setVisible(true); this.dispose(); } private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) { new update_student().setVisible(true); this.dispose(); } private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) { new Update_Staff().setVisible(true); this.dispose(); } private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) { new insert_class().setVisible(true); this.dispose(); } private void jButton8ActionPerformed(java.awt.event.ActionEvent evt) { new view_class().setVisible(true); this.dispose(); } private void jLabel2MousePressed(java.awt.event.MouseEvent evt) { new LOGIN().setVisible(true); this.dispose(); } private void jButton9ActionPerformed(java.awt.event.ActionEvent evt) { new fees().setVisible(true); this.dispose(); } private void jButton8ActionPerformed(java.awt.event.ActionEvent evt) { new view_class().setVisible(true); this.dispose();
  • 19. 19 | P a g e } private void jButton11ActionPerformed(java.awt.event.ActionEvent evt) { new student_del().setVisible(true); this.dispose(); } private void jButton10ActionPerformed(java.awt.event.ActionEvent evt) { new JFrame().setVisible(true); this.dispose(); } private void jButton12ActionPerformed(java.awt.event.ActionEvent evt) { new staff_del().setVisible(true); this.dispose(); } java.awt.EventQueue.invokeLater(new Runnable() { public void run() { try { new LOGIN_1().setVisible(true); } catch (ClassNotFoundException ex) { Logger.getLogger(LOGIN_1.class.getName()).log(Level.SEVERE, null, ex); } } }); } // Variables declaration - do not modify private javax.swing.JButton jButton1; private javax.swing.JButton jButton2; private javax.swing.JButton jButton3; private javax.swing.JButton jButton4; private javax.swing.JButton jButton5; private javax.swing.JButton jButton6; private javax.swing.JButton jButton7; private javax.swing.JButton jButton8; private javax.swing.JButton jButton9; private javax.swing.JLabel jLabel1; private javax.swing.JLabel jLabel2; private org.jdesktop.beansbinding.BindingGroup bindingGroup; // End of variables declaration }
  • 20. 20 | P a g e Frame: STUDENT.java Coding for STUDENT.java :- import java.awt.HeadlessException; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.logging.Level; import java.util.logging.Logger;
  • 21. 21 | P a g e import javax.swing.ImageIcon; import javax.swing.JFileChooser; import javax.swing.JOptionPane; public class STUDENT extends javax.swing.JFrame { Connection con= null; Statement stm=null; ResultSet rs= null; String db= "jdbc:mysql://localhost/sarthak"; String s; ImageIcon ima=new ImageIcon(); public STUDENT() throws SQLException { initComponents(); try{ Class.forName("com.mysql.jdbc.Driver"); con=DriverManager.getConnection(db,"root","root"); stm=con.createStatement();} catch (ClassNotFoundException | SQLException e) { JOptionPane.showMessageDialog(null,e.getMessage()); } } private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) { try { new LOGIN_1().setVisible(true); } catch (ClassNotFoundException ex) { Logger.getLogger(STUDENT.class.getName()).log(Level.SEVERE, null, ex); } this.dispose(); } private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { String a=jTextField1.getText(); String b=jTextField2.getText(); String c=jTextField3.getText(); String d=jTextField4.getText(); String h=jTextField5.getText(); String f=jTextField6.getText(); String g=jTextField7.getText(); String i=jTextField8.getText();
  • 22. 22 | P a g e String j=jTextField9.getText(); String k=jTextField10.getText(); ImageIcon img=(ImageIcon) jLabel9.getIcon(); try { stm.executeUpdate("insert into student values("+a+",'"+b+"','"+c+"','"+d+"','"+h+"','"+f+"','"+g+"','"+i+"','"+j+"','"+k+"');"); stm.executeUpdate("insert into student_image values("+a+",'"+img+"');"); JOptionPane.showMessageDialog(null,"Entry Added Successfully"); } catch(SQLException | HeadlessException e) { JOptionPane.showMessageDialog(null,e.getMessage()); } } private void formWindowGainedFocus(java.awt.event.WindowEvent evt) { try{ rs=stm.executeQuery("select Scholar_Number from student;"); int acno=0, ACNO = 0; while (rs.next()) { ACNO = rs.getInt("Scholar_Number"); } ACNO++; acno = ACNO; jTextField1.setText(""+acno); } catch (SQLException ex) { Logger.getLogger(STUDENT.class.getName()).log(Level.SEVERE, null, ex); } jTextField2.setText(""); jTextField3.setText(""); jTextField4.setText(""); jTextField5.setText(""); jTextField6.setText(""); jTextField7.setText(""); jTextField8.setText(""); jTextField9.setText(""); jTextField10.setText(""); }
  • 23. 23 | P a g e private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) { JFileChooser img = new JFileChooser(); img.showOpenDialog(null); File f=img.getSelectedFile(); String bite=f.getAbsolutePath(); ImageIcon icon=new ImageIcon(bite); jLabel9.setIcon(icon); s = bite; ima = icon; } // Variables declaration - do not modify private javax.swing.JButton jButton1; private javax.swing.JButton jButton3; private javax.swing.JButton jButton4; private javax.swing.JLabel jLabel1; private javax.swing.JLabel jLabel10; private javax.swing.JLabel jLabel11; 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.JLabel jLabel7; private javax.swing.JLabel jLabel8; private javax.swing.JLabel jLabel9; private javax.swing.JTextField jTextField1; private javax.swing.JTextField jTextField10; private javax.swing.JTextField jTextField2; private javax.swing.JTextField jTextField3; private javax.swing.JTextField jTextField4; private javax.swing.JTextField jTextField5; private javax.swing.JTextField jTextField6; private javax.swing.JTextField jTextField7; private javax.swing.JTextField jTextField8; private javax.swing.JTextField jTextField9; // End of variables declaration
  • 24. 24 | P a g e Frame: view_student_1.java Coding for view_student_1.Java import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.JOptionPane; public class view_student_1 extends javax.swing.JFrame { Connection con= null; Statement stm=null; ResultSet rs= null; String db= "jdbc:mysql://localhost/sarthak"; public view_student_1() throws SQLException { initComponents(); try{ Class.forName("com.mysql.jdbc.Driver"); con=DriverManager.getConnection(db,"root","root"); stm=con.createStatement();} catch (ClassNotFoundException | SQLException e) { JOptionPane.showMessageDialog(null,e.getMessage()); } } private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
  • 25. 25 | P a g e new view_student().setVisible(true); this.dispose(); } private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) { new view_student_class().setVisible(true); this.dispose(); } private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) { new view_student_scholar().setVisible(true); this.dispose(); } private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) { new View_Student_Name().setVisible(true); this.dispose(); } private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) { try { new LOGIN_1().setVisible(true); } catch (ClassNotFoundException ex) { Logger.getLogger(view_student_1.class.getName()).log(Level.SEVERE, null, ex); } this.dispose(); } // Variables declaration - do not modify private javax.swing.JButton jButton1; private javax.swing.JButton jButton2; private javax.swing.JButton jButton3; private javax.swing.JButton jButton4; private javax.swing.JButton jButton5; // End of variables declaration
  • 26. 26 | P a g e Frame: view_student.java Coding of view_student.java :- import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.JOptionPane; import javax.swing.table.DefaultTableModel; public class view_student extends javax.swing.JFrame { Connection con= null; Statement stm=null; ResultSet rs= null; String db= "jdbc:mysql://localhost/sarthak"; public view_student() { initComponents(); try{ Class.forName("com.mysql.jdbc.Driver"); con=DriverManager.getConnection(db,"root","root"); stm=con.createStatement();} catch (ClassNotFoundException | SQLException e)
  • 27. 27 | P a g e { JOptionPane.showMessageDialog(null,e.getMessage()); }} private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) { DefaultTableModel tm= (DefaultTableModel) jTable1.getModel(); int x= tm.getRowCount(); for(int i=0;i<x;i++) tm.removeRow(0); } private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) { try { new view_student_1().setVisible(true); } catch (SQLException ex) { Logger.getLogger(view_student.class.getName()).log(Level.SEVERE, null, ex); } this.dispose(); } private void formWindowGainedFocus(java.awt.event.WindowEvent evt) { DefaultTableModel tm= (DefaultTableModel) jTable1.getModel(); try {rs=stm.executeQuery("select * from student;"); int a; String b,c,d,e,f,g,h,i,o; while (rs.next()){ a=rs.getInt("Scholar_Number"); b=rs.getString("First_Name"); c=rs.getString("Last_Name"); d=rs.getString("Father_Name"); i=rs.getString("Class"); e=rs.getString("Mobile_Number"); f=rs.getString("Place"); g=rs.getString("Aadhar_Number"); h=rs.getString("Section"); o=rs.getString("Sex"); Object rec[]={a,b,c,d,i,h,e,f,g,o}; tm.addRow(rec);
  • 28. 28 | P a g e } rs.close(); } catch (Exception e) { JOptionPane.showMessageDialog(null,e.getMessage()); } } // Variables declaration - do not modify private javax.swing.JButton jButton2; private javax.swing.JButton jButton3; private javax.swing.JScrollPane jScrollPane1; private javax.swing.JTable jTable1; // End of variables declaration
  • 29. 29 | P a g e Frame: view_student_class.java Coding for view_student_class.java :- import com.mysql.jdbc.Connection; import com.mysql.jdbc.Statement; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.JOptionPane; import javax.swing.table.DefaultTableModel; public class view_student_class extends javax.swing.JFrame { Connection con= null; Statement stm=null; ResultSet rs= null; String db= "jdbc:mysql://localhost/sarthak"; public view_student_class() { initComponents(); try{ Class.forName("com.mysql.jdbc.Driver"); con=(Connection) DriverManager.getConnection(db,"root","root"); stm=(Statement) con.createStatement();} catch (ClassNotFoundException | SQLException e) { JOptionPane.showMessageDialog(null,e.getMessage());
  • 30. 30 | P a g e } } private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { DefaultTableModel tm= (DefaultTableModel) jTable1.getModel(); String l=jTextField1.getText(); String m=jTextField2.getText(); try {rs=stm.executeQuery("select * from student where class='"+l+"' and section='"+m+"';"); int a; String r,c,n,f,s,co,k,j; while (rs.next()){ a=rs.getInt("Scholar_Number"); r=rs.getString("First_Name"); c=rs.getString("Last_Name"); n=rs.getString("Father_Name"); f=rs.getString("Class"); s=rs.getString("Mobile_Number"); co=rs.getString("Place"); k=rs.getString("Aadhar_Number"); j=rs.getString("Section"); Object rec[]={a,r,c,n,f,j,s,co,k}; tm.addRow(rec); } rs.close(); } catch (Exception e) { JOptionPane.showMessageDialog(null,e.getMessage()); } } private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) { DefaultTableModel tm= (DefaultTableModel) jTable1.getModel(); int x= tm.getRowCount(); for(int i=0;i<x;i++) tm.removeRow(0); jTextField1.setText(""); jTextField2.setText("");
  • 31. 31 | P a g e } private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) { try { new view_student_1().setVisible(true); } catch (SQLException ex) { Logger.getLogger(view_student_class.class.getName()).log(Level.SEVERE, null, ex); } this.dispose(); } private void jButton1KeyPressed(java.awt.event.KeyEvent evt) { DefaultTableModel tm= (DefaultTableModel) jTable1.getModel(); String l=jTextField1.getText(); String m=jTextField2.getText(); try {rs=stm.executeQuery("select * from student where class='"+l+"' and section='"+m+"';"); int a; String r,c,n,f,s,co,k,j; while (rs.next()){ a=rs.getInt("Scholar_Number"); r=rs.getString("First_Name"); c=rs.getString("Last_Name"); n=rs.getString("Father_Name"); f=rs.getString("Class"); s=rs.getString("Mobile_Number"); co=rs.getString("Place"); k=rs.getString("Aadhar_Number"); j=rs.getString("Section"); Object rec[]={a,r,c,n,f,j,s,co,k}; tm.addRow(rec); } rs.close(); } catch (Exception e) { JOptionPane.showMessageDialog(null,e.getMessage()); } } private void jLabel3MouseClicked(java.awt.event.MouseEvent evt) {
  • 32. 32 | P a g e System.exit(0); } // Variables declaration - do not modify private javax.swing.JButton jButton1; private javax.swing.JButton jButton2; private javax.swing.JButton jButton3; private javax.swing.JLabel jLabel1; private javax.swing.JLabel jLabel2; private javax.swing.JLabel jLabel3; private javax.swing.JScrollPane jScrollPane1; private javax.swing.JTable jTable1; private javax.swing.JTextField jTextField1; private javax.swing.JTextField jTextField2; // End of variables declaration
  • 33. 33 | P a g e Frame: view_student_scholar.java Coding for view_student_scholar.java :- import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.JOptionPane; import javax.swing.table.DefaultTableModel; public class view_student_scholar extends javax.swing.JFrame { Connection con= null; Statement stm=null; ResultSet rs= null; String db= "jdbc:mysql://localhost/sarthak"; public view_student_scholar() { initComponents(); try{ Class.forName("com.mysql.jdbc.Driver"); con=DriverManager.getConnection(db,"root","root"); stm=con.createStatement();} catch (ClassNotFoundException | SQLException e) { JOptionPane.showMessageDialog(null,e.getMessage()); } } private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
  • 34. 34 | P a g e DefaultTableModel tm= (DefaultTableModel) jTable1.getModel(); int x= tm.getRowCount(); for(int i=0;i<x;i++) tm.removeRow(0); jTextField1.setText(""); } private void jTextField1KeyReleased(java.awt.event.KeyEvent evt) { DefaultTableModel tm= (DefaultTableModel) jTable1.getModel(); String l=jTextField1.getText(); try {rs=stm.executeQuery("select * from student where scholar_number='"+l+"';"); int a; String r,c,n,f,s,co,k,j; while (rs.next()){ a=rs.getInt("Scholar_Number"); r=rs.getString("First_Name"); c=rs.getString("Last_Name"); n=rs.getString("Father_Name"); f=rs.getString("Class"); s=rs.getString("Mobile_Number"); co=rs.getString("Place"); k=rs.getString("Aadhar_Number"); j=rs.getString("Section"); Object rec[]={a,r,c,n,f,j,s,co,k}; tm.addRow(rec); } rs.close(); } catch (Exception e) { JOptionPane.showMessageDialog(null,e.getMessage()); } if(l.equalsIgnoreCase("")) { int x= tm.getRowCount(); for(int i=0;i<x;i++)
  • 35. 35 | P a g e tm.removeRow(0); jTextField1.setText(""); } } private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) { try { new view_student_1().setVisible(true); } catch (SQLException ex) { Logger.getLogger(view_student_scholar.class.getName()).log(Level.SEVERE, null, ex); } this.dispose(); } // Variables declaration - do not modify private javax.swing.JButton jButton2; private javax.swing.JButton jButton3; private javax.swing.JLabel jLabel1; private javax.swing.JScrollPane jScrollPane1; private javax.swing.JTable jTable1; private javax.swing.JTextField jTextField1; // End of variables declaration
  • 36. 36 | P a g e Frame: View_Student_Name.java Coding of View_Student_Name.Java:- import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.JOptionPane; import javax.swing.table.DefaultTableModel; public class View_Student_Name extends javax.swing.JFrame { Connection con= null; Statement stm=null; ResultSet rs= null; String db= "jdbc:mysql://localhost/sarthak"; public View_Student_Name() { initComponents(); try{ Class.forName("com.mysql.jdbc.Driver"); con=DriverManager.getConnection(db,"root","root"); stm=con.createStatement();} catch (ClassNotFoundException | SQLException e) { JOptionPane.showMessageDialog(null,e.getMessage());
  • 37. 37 | P a g e } } private void jTextField1KeyTyped(java.awt.event.KeyEvent evt) { DefaultTableModel tm= (DefaultTableModel) jTable2.getModel(); String l=jTextField1.getText(); try {rs=stm.executeQuery("select * from student where First_Name='"+l+"';"); int a; String r,c,n,f,s,co,k,j; while (rs.next()){ a=rs.getInt("Scholar_Number"); r=rs.getString("First_Name"); c=rs.getString("Last_Name"); n=rs.getString("Father_Name"); f=rs.getString("Class"); s=rs.getString("Mobile_Number"); co=rs.getString("Place"); k=rs.getString("Aadhar_Number"); j=rs.getString("Section"); Object rec[]={a,r,c,n,f,j,s,co,k}; tm.addRow(rec); } rs.close(); } catch (Exception e) { JOptionPane.showMessageDialog(null,e.getMessage()); } } private void jTextField1KeyReleased(java.awt.event.KeyEvent evt) { DefaultTableModel tm= (DefaultTableModel) jTable2.getModel(); String l=jTextField1.getText(); try {rs=stm.executeQuery("select * from student where First_Name='"+l+"';"); int a; String r,c,n,f,s,co,k,j; while (rs.next()){
  • 38. 38 | P a g e a=rs.getInt("Scholar_Number"); r=rs.getString("First_Name"); c=rs.getString("Last_Name"); n=rs.getString("Father_Name"); f=rs.getString("Class"); s=rs.getString("Mobile_Number"); co=rs.getString("Place"); k=rs.getString("Aadhar_Number"); j=rs.getString("Section"); Object rec[]={a,r,c,n,f,j,s,co,k}; tm.addRow(rec); } rs.close(); } catch (Exception e) { JOptionPane.showMessageDialog(null,e.getMessage()); } String t=jTextField1.getText(); if(t.equalsIgnoreCase("")) { int x= tm.getRowCount(); for(int i=0;i<x;i++) tm.removeRow(0); jTextField1.setText(""); } } private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { DefaultTableModel tm= (DefaultTableModel) jTable2.getModel(); int x= tm.getRowCount(); for(int i=0;i<x;i++) tm.removeRow(0); jTextField1.setText(""); } private void jButton1KeyPressed(java.awt.event.KeyEvent evt) { DefaultTableModel tm= (DefaultTableModel) jTable2.getModel(); int x= tm.getRowCount(); for(int i=0;i<x;i++) tm.removeRow(0);
  • 39. 39 | P a g e jTextField1.setText(""); } private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) { try { new view_student_1().setVisible(true); this.dispose(); } catch (SQLException ex) { Logger.getLogger(View_Student_Name.class.getName()).log(Level.SEVERE, null, ex); } } // Variables declaration - do not modify private javax.swing.JButton jButton1; private javax.swing.JButton jButton2; private javax.swing.JLabel jLabel1; private javax.swing.JScrollPane jScrollPane2; private javax.swing.JTable jTable2; private javax.swing.JTextField jTextField1; // End of variables declaration
  • 40. 40 | P a g e Frame: update_student.java Coding for Update_Student.java import java.awt.HeadlessException; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.JOptionPane; public class update_student extends javax.swing.JFrame { Connection con= null; Statement stm=null; Statement stm1=null; ResultSet rs= null; ResultSet rt=null; String db= "jdbc:mysql://localhost/sarthak";
  • 41. 41 | P a g e public update_student() { initComponents(); try{ Class.forName("com.mysql.jdbc.Driver"); con=DriverManager.getConnection(db,"root","root"); stm=con.createStatement();} catch (ClassNotFoundException | SQLException e) { JOptionPane.showMessageDialog(null,e.getMessage()); } } private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) { String a=null; a=jTextField1.getText(); String b=jTextField2.getText(); String c=jTextField3.getText(); String d=jTextField4.getText(); String h=jTextField5.getText(); String f=jTextField6.getText(); String g=jTextField7.getText(); String i=jTextField8.getText(); String j=jTextField9.getText(); String k=jTextField10.getText(); try{ stm.executeUpdate("update student set First_Name='"+b+"',Last_Name='"+c+"',Father_Name='"+d+"',Class='"+h+"',Section='"+f+"',Mobile_N umber='"+g+"',Place='"+i+"',Aadhar_Number='"+j+"',Sex='"+k+"' where Scholar_Number="+a+";"); JOptionPane.showMessageDialog(null,"Student Profile Update Successfully"); } catch (SQLException ex) { Logger.getLogger(update_student.class.getName()).log(Level.SEVERE, null, ex); } } private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) { try { new LOGIN_1().setVisible(true); this.dispose(); } catch (ClassNotFoundException ex) {
  • 42. 42 | P a g e Logger.getLogger(update_student.class.getName()).log(Level.SEVERE, null, ex); } } private void formWindowGainedFocus(java.awt.event.WindowEvent evt) { jTextField2.setText(""); jTextField3.setText(""); jTextField4.setText(""); jTextField5.setText(""); jTextField6.setText(""); jTextField7.setText(""); jTextField8.setText(""); jTextField9.setText(""); jTextField1.setText(""); jTextField10.setText(""); } private void jTextField1KeyPressed(java.awt.event.KeyEvent evt) { try { String y; y=jTextField1.getText(); rs=stm.executeQuery("select * from student where Scholar_Number='"+y+"';"); String b,i,z; String c,d,e,f,g,h,p; while (rs.next()){ b=rs.getString("First_Name"); c=rs.getString("Last_Name"); d=rs.getString("Father_Name"); i=rs.getString("Class"); z=rs.getString("Mobile_Number"); f=rs.getString("Place"); g=rs.getString("Aadhar_Number"); h=rs.getString("Section"); p=rs.getString("Sex"); jTextField2.setText(""+b); jTextField3.setText(""+c); jTextField4.setText(""+d); jTextField5.setText(""+i); jTextField6.setText(""+h); jTextField7.setText(""+z);
  • 43. 43 | P a g e jTextField8.setText(""+f); jTextField9.setText(""+g); jTextField10.setText(""+p); } rs.close(); } catch (Exception a) { JOptionPane.showMessageDialog(null,"Scholar Number Does Not Exist"); } } private void jTextField1KeyTyped(java.awt.event.KeyEvent evt) { try { String y; y=jTextField1.getText(); rs=stm.executeQuery("select * from student where Scholar_Number='"+y+"';"); String b,i,z; String c,d,e,f,g,h,p; while (rs.next()){ b=rs.getString("First_Name"); c=rs.getString("Last_Name"); d=rs.getString("Father_Name"); i=rs.getString("Class"); z=rs.getString("Mobile_Number"); f=rs.getString("Place"); g=rs.getString("Aadhar_Number"); h=rs.getString("Section"); p=rs.getString("Sex"); jTextField2.setText(""+b); jTextField3.setText(""+c); jTextField4.setText(""+d); jTextField5.setText(""+i); jTextField6.setText(""+h); jTextField7.setText(""+z); jTextField8.setText(""+f); jTextField9.setText(""+g); jTextField10.setText(""+p); }
  • 44. 44 | P a g e rs.close(); } catch (Exception a) { JOptionPane.showMessageDialog(null,"Scholar Number Does Not Exist"); } String t=jTextField1.getText(); if(t.equalsIgnoreCase("")) { jTextField2.setText(""); jTextField3.setText(""); jTextField4.setText(""); jTextField5.setText(""); jTextField6.setText(""); jTextField7.setText(""); jTextField8.setText(""); jTextField9.setText(""); jTextField10.setText(""); } } private void jTextField1KeyReleased(java.awt.event.KeyEvent evt) { try { String y; y=jTextField1.getText(); rs=stm.executeQuery("select * from student where Scholar_Number='"+y+"';"); String b,i,z; String c,d,e,f,g,h,p; while (rs.next()){ b=rs.getString("First_Name"); c=rs.getString("Last_Name"); d=rs.getString("Father_Name"); i=rs.getString("Class"); z=rs.getString("Mobile_Number"); f=rs.getString("Place"); g=rs.getString("Aadhar_Number"); h=rs.getString("Section"); p=rs.getString("Sex"); jTextField2.setText(""+b);
  • 45. 45 | P a g e jTextField3.setText(""+c); jTextField4.setText(""+d); jTextField5.setText(""+i); jTextField6.setText(""+h); jTextField7.setText(""+z); jTextField8.setText(""+f); jTextField9.setText(""+g); jTextField10.setText(""+p); } rs.close(); } catch (Exception a) { JOptionPane.showMessageDialog(null,"Scholar Number Does Not Exist"); } } // Variables declaration - do not modify private javax.swing.JButton jButton2; private javax.swing.JButton jButton3; private javax.swing.JLabel jLabel1; private javax.swing.JLabel jLabel10; private javax.swing.JLabel jLabel11; 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.JLabel jLabel7; private javax.swing.JLabel jLabel8; private javax.swing.JLabel jLabel9; private javax.swing.JTextField jTextField1; private javax.swing.JTextField jTextField10; private javax.swing.JTextField jTextField2; private javax.swing.JTextField jTextField3; private javax.swing.JTextField jTextField4; private javax.swing.JTextField jTextField5; private javax.swing.JTextField jTextField6;
  • 46. 46 | P a g e private javax.swing.JTextField jTextField7; private javax.swing.JTextField jTextField8; private javax.swing.JTextField jTextField9; // End of variables declaration
  • 47. 47 | P a g e Frame: staff.java Coding for staff.java import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.JOptionPane; public class staff extends javax.swing.JFrame { Connection con= null; Statement stm=null; ResultSet rs= null; String db= "jdbc:mysql://localhost/sarthak"; public staff() throws SQLException { initComponents(); try{ Class.forName("com.mysql.jdbc.Driver"); con=DriverManager.getConnection(db,"root","root");
  • 48. 48 | P a g e stm=con.createStatement();} catch (ClassNotFoundException | SQLException e) { JOptionPane.showMessageDialog(null,e.getMessage()); } } private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { String a,b,c,d,h,f; a=jTextField1.getText(); b=jTextField2.getText(); c=jTextField3.getText(); d=jTextField4.getText(); h=jTextField5.getText(); f=jTextField6.getText(); try { stm.executeUpdate("insert into staff values('"+a+"','"+b+"','"+c+"',"+d+",'"+h+"','"+f+"');"); JOptionPane.showMessageDialog(null,"Entry Added Successfully"); } catch(Exception e) { JOptionPane.showMessageDialog(null,e.getMessage()); } } private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) { try { new LOGIN_1().setVisible(true); } catch (ClassNotFoundException ex) { Logger.getLogger(staff.class.getName()).log(Level.SEVERE, null, ex); } this.dispose(); } private void formWindowGainedFocus(java.awt.event.WindowEvent evt) { try{ rs=stm.executeQuery("select emp_no from staff;"); int acno=0, ACNO = 0; while (rs.next()) {
  • 49. 49 | P a g e ACNO = rs.getInt("emp_no"); } ACNO++; acno = ACNO; jTextField1.setText(""+acno); } catch (SQLException ex) { Logger.getLogger(STUDENT.class.getName()).log(Level.SEVERE, null, ex); } jTextField2.setText(""); jTextField3.setText(""); jTextField4.setText(""); jTextField5.setText(""); jTextField6.setText(""); } // Variables declaration - do not modify private javax.swing.JButton jButton1; private javax.swing.JButton jButton3; 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.JTextField jTextField1; private javax.swing.JTextField jTextField2; private javax.swing.JTextField jTextField3; private javax.swing.JTextField jTextField4; private javax.swing.JTextField jTextField5; private javax.swing.JTextField jTextField6; // End of variables declaration
  • 50. 50 | P a g e Frame: view_staff.java Coding for view_staff.Java import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.JOptionPane; import javax.swing.table.DefaultTableModel; public class view_staff extends javax.swing.JFrame { Connection con= null; Statement stm=null; ResultSet rs= null; String db= "jdbc:mysql://localhost/sarthak"; public view_staff() { initComponents(); try{ Class.forName("com.mysql.jdbc.Driver"); con=DriverManager.getConnection(db,"root","root"); stm=con.createStatement();} catch (ClassNotFoundException | SQLException e) { JOptionPane.showMessageDialog(null,e.getMessage()); } }
  • 51. 51 | P a g e private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { new view_staff_1().setVisible(true); this.dispose(); } private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) { try { new LOGIN_1().setVisible(true); } catch (ClassNotFoundException ex) { Logger.getLogger(view_staff.class.getName()).log(Level.SEVERE, null, ex); } this.dispose(); } // Variables declaration - do not modify private javax.swing.JButton jButton1; private javax.swing.JButton jButton2; private javax.swing.JButton jButton3; // End of variables declaration
  • 52. 52 | P a g e Frame: view_staff_1.java Coding for view_staff_1.java import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import javax.swing.JOptionPane; import javax.swing.table.DefaultTableModel; public class view_staff_1 extends javax.swing.JFrame { Connection con= null; Statement stm=null; ResultSet rs= null; String db= "jdbc:mysql://localhost/sarthak"; public view_staff_1() { initComponents(); try{ Class.forName("com.mysql.jdbc.Driver"); con=DriverManager.getConnection(db,"root","root"); stm=con.createStatement();}
  • 53. 53 | P a g e catch (ClassNotFoundException | SQLException e) { JOptionPane.showMessageDialog(null,e.getMessage()); } } private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) { DefaultTableModel tm= (DefaultTableModel) jTable1.getModel(); int x= tm.getRowCount(); for(int i=0;i<x;i++) tm.removeRow(0); } private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) { new view_staff().setVisible(true); this.dispose(); } private void formWindowGainedFocus(java.awt.event.WindowEvent evt) { DefaultTableModel tm= (DefaultTableModel) jTable1.getModel(); try {rs=stm.executeQuery("select * from staff;"); int a; String b,c,d,e,f; while (rs.next()){ a=rs.getInt("Emp_No"); b=rs.getString("Name"); c=rs.getString("designation"); d=rs.getString("Mobile_Number"); e=rs.getString("Address"); f=rs.getString("Aadhar_Number"); Object rec[]={a,b,c,d,e,f}; tm.addRow(rec); } rs.close(); } catch (Exception e) { JOptionPane.showMessageDialog(null,e.getMessage()); }
  • 54. 54 | P a g e } // Variables declaration - do not modify private javax.swing.JButton jButton1; private javax.swing.JButton jButton2; private javax.swing.JButton jButton3; private javax.swing.JScrollPane jScrollPane1; private javax.swing.JTable jTable1; // End of variables declaration
  • 55. 55 | P a g e Frame: Update_staff.java Coding for Update_Staff.java import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.JOptionPane; public class Update_Staff extends javax.swing.JFrame { Connection con= null; Statement stm=null; Statement stm1=null; ResultSet rs= null; ResultSet rt=null; String db= "jdbc:mysql://localhost/sarthak"; public Update_Staff() { initComponents(); try{ Class.forName("com.mysql.jdbc.Driver");
  • 56. 56 | P a g e con=DriverManager.getConnection(db,"root","root"); stm=con.createStatement();} catch (ClassNotFoundException | SQLException e) { JOptionPane.showMessageDialog(null,e.getMessage()); } } private void jTextField1KeyTyped(java.awt.event.KeyEvent evt) { try { String y; y=jTextField1.getText(); rs=stm.executeQuery("select * from staff where emp_no='"+y+"';"); String b,i,z; String c,d,e,f,g,h,p; while (rs.next()){ b=rs.getString("Name"); c=rs.getString("designation"); d=rs.getString("Mobile_Number"); i=rs.getString("Address"); h=rs.getString("Aadhar_Number"); jTextField2.setText(""+b); jTextField3.setText(""+c); jTextField4.setText(""+d); jTextField5.setText(""+i); jTextField6.setText(""+h); } rs.close(); } catch (Exception a) { JOptionPane.showMessageDialog(null,"Employee Does Not Exist"); }
  • 57. 57 | P a g e } private void jTextField1KeyReleased(java.awt.event.KeyEvent evt) { try { String y; y=jTextField1.getText(); rs=stm.executeQuery("select * from staff where emp_no='"+y+"';"); String b,i,z; String c,d,e,f,g,h,p; while (rs.next()){ b=rs.getString("Name"); c=rs.getString("designation"); d=rs.getString("Mobile_Number"); i=rs.getString("Address"); h=rs.getString("Aadhar_Number"); jTextField2.setText(""+b); jTextField3.setText(""+c); jTextField4.setText(""+d); jTextField5.setText(""+i); jTextField6.setText(""+h); } rs.close(); } catch (Exception a) { JOptionPane.showMessageDialog(null,"Scholar Number Does Not Exist"); } String t=jTextField1.getText(); if(t.equalsIgnoreCase("")) { jTextField2.setText(""); jTextField3.setText(""); jTextField4.setText(""); jTextField5.setText("");
  • 58. 58 | P a g e jTextField6.setText(""); } } private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { String a=jTextField1.getText(); String b=jTextField2.getText(); String c=jTextField3.getText(); String d=jTextField4.getText(); String h=jTextField5.getText(); String f=jTextField6.getText(); try{ stm.executeUpdate("update staff set Name='"+b+"',designation='"+c+"',Mobile_Number='"+d+"',Address='"+h+"' where emp_no="+a+";"); JOptionPane.showMessageDialog(null,"Staff Profile Update Successfully"); } catch (SQLException ex) { Logger.getLogger(update_student.class.getName()).log(Level.SEVERE, null, ex); } } private void formWindowGainedFocus(java.awt.event.WindowEvent evt) { jTextField2.setText(""); jTextField3.setText(""); jTextField4.setText(""); jTextField5.setText(""); jTextField6.setText(""); jTextField1.setText(""); } private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) { try { new LOGIN_1().setVisible(true); } catch (ClassNotFoundException ex) { Logger.getLogger(Update_Staff.class.getName()).log(Level.SEVERE, null, ex); } this.dispose(); } // Variables declaration - do not modify
  • 59. 59 | P a g e 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.JTextField jTextField1; private javax.swing.JTextField jTextField2; private javax.swing.JTextField jTextField3; private javax.swing.JTextField jTextField4; private javax.swing.JTextField jTextField5; private javax.swing.JTextField jTextField6; // End of variables declaration
  • 60. 60 | P a g e Frame: insert_class.java Coding for insert_class.java import java.awt.HeadlessException; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.JOptionPane; public class insert_class extends javax.swing.JFrame { Connection con= null; Statement stm=null; Statement stm1=null; ResultSet rs= null; ResultSet rt=null; String db= "jdbc:mysql://localhost/sarthak"; public insert_class() { initComponents(); try{ Class.forName("com.mysql.jdbc.Driver"); con=DriverManager.getConnection(db,"root","root");
  • 61. 61 | P a g e stm=con.createStatement();} catch (ClassNotFoundException | SQLException e) { JOptionPane.showMessageDialog(null,e.getMessage()); } } private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) { jTextField1.setText(""); jTextField2.setText(""); jTextField3.setText(""); jTextField4.setText(""); jTextField5.setText(""); } private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) { try { new LOGIN_1().setVisible(true); } catch (ClassNotFoundException ex) { Logger.getLogger(insert_class.class.getName()).log(Level.SEVERE, null, ex); } this.dispose(); } private void jTextField6KeyPressed(java.awt.event.KeyEvent evt) { String c=jTextField1.getText(); String d=jTextField6.getText(); try{ rs=stm.executeQuery("select count(sex) from student where sex='m' AND class='"+c+"' and section='"+d+"';"); while(rs.next()){ String b=rs.getString("count(sex)"); jTextField2.setText(""+b); } } catch (SQLException ex) { Logger.getLogger(insert_class.class.getName()).log(Level.SEVERE, null, ex); } }
  • 62. 62 | P a g e private void jTextField6KeyReleased(java.awt.event.KeyEvent evt) { String c=jTextField1.getText(); String d=jTextField6.getText(); try{ rs=stm.executeQuery("select count(sex) from student where sex='m' AND class='"+c+"' and section='"+d+"';"); while(rs.next()){ String b=rs.getString("count(sex)"); jTextField2.setText(""+b); } } catch (SQLException ex) { Logger.getLogger(insert_class.class.getName()).log(Level.SEVERE, null, ex); } try{ rs=stm.executeQuery("select count(sex) from student where sex='F' AND class='"+c+"' and section='"+d+"';"); while(rs.next()){ String b=rs.getString("count(sex)"); jTextField3.setText(""+b); } } catch (SQLException ex) { Logger.getLogger(insert_class.class.getName()).log(Level.SEVERE, null, ex); } int e,f,g; e=Integer.parseInt(jTextField2.getText()); f=Integer.parseInt(jTextField3.getText()); g=e+f; jTextField4.setText(""+g); } private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { String a,c,d,e; String b,f; a=jTextField1.getText();
  • 63. 63 | P a g e c=jTextField2.getText(); b=jTextField6.getText(); d=jTextField3.getText(); e=jTextField4.getText(); f=jTextField5.getText(); try{ stm.executeUpdate("insert into class values("+a+",'"+b+"',"+c+","+d+","+e+",'"+f+"');"); JOptionPane.showMessageDialog(null,"Entry Added Successfully"); } catch (SQLException ex) { Logger.getLogger(insert_class.class.getName()).log(Level.SEVERE, null, ex); } } private void formWindowGainedFocus(java.awt.event.WindowEvent evt) { jTextField1.setText(""); jTextField2.setText(""); jTextField3.setText(""); jTextField4.setText(""); jTextField5.setText(""); jTextField6.setText(""); } // Variables declaration - do not modify private javax.swing.JButton jButton1; private javax.swing.JButton jButton2; private javax.swing.JButton jButton3; 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.JLabel jLabel7; private javax.swing.JTextField jTextField1; private javax.swing.JTextField jTextField2; private javax.swing.JTextField jTextField3; private javax.swing.JTextField jTextField4; private javax.swing.JTextField jTextField5; private javax.swing.JTextField jTextField6; // End of variables declaration
  • 64. 64 | P a g e Frame: Fees.java Coding for fees.java import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.JOptionPane;
  • 65. 65 | P a g e public class fees extends javax.swing.JFrame { Connection con= null; Statement stm=null; ResultSet rs= null; String db= "jdbc:mysql://localhost/sarthak"; public fees() { initComponents(); try{ Class.forName("com.mysql.jdbc.Driver"); con=DriverManager.getConnection(db,"root","root"); stm=con.createStatement();} catch (ClassNotFoundException | SQLException e) { JOptionPane.showMessageDialog(null,e.getMessage()); } } private void formWindowGainedFocus(java.awt.event.WindowEvent evt) { try{ rs=stm.executeQuery("select rcp_no from fees_paid;"); int acno=0, ACNO = 0; while (rs.next()) { ACNO = rs.getInt("rcp_no"); } ACNO++; acno = ACNO; jTextField5.setText(""+acno); } catch (SQLException ex) { Logger.getLogger(fees.class.getName()).log(Level.SEVERE, null, ex); } jTextField2.setText(""); jTextField3.setText(""); jTextField4.setText(""); jTextField9.setText(""); jTextField6.setText(""); jTextField7.setText(""); jTextField10.setText(""); jTextField9.setText("");
  • 66. 66 | P a g e Calendar a=Calendar.getInstance(); a.getTime(); SimpleDateFormat b=new SimpleDateFormat("dd/MM/yyyy HH:mm"); jLabel10.setText(b.format(a.getTime())); } private void jTextField1KeyReleased(java.awt.event.KeyEvent evt) { try { String y; y=jTextField1.getText(); rs=stm.executeQuery("select * from student where Scholar_Number='"+y+"';"); String b,i,z; String c,d,e,f,g,h,p; while (rs.next()){ e=rs.getString("scholar_number"); b=rs.getString("First_Name"); c=rs.getString("Last_Name"); d=rs.getString("Class"); i=rs.getString("Mobile_Number"); p=rs.getString("Sex"); z=rs.getString("Section"); jTextField2.setText(b + " "+ c ); jTextField3.setText(d+" "+z); jTextField4.setText(""+i); jTextField6.setText(b + " "+ c); jTextField7.setText(d+" "+z); jTextField9.setText(""+e); } rs.close(); } catch (Exception a) { JOptionPane.showMessageDialog(null,"Scholar Number Does Not Exist"); } String t=jTextField1.getText(); if(t.equalsIgnoreCase("")) { jTextField2.setText("");
  • 67. 67 | P a g e jTextField3.setText(""); jTextField4.setText(""); jTextField9.setText(""); jTextField6.setText(""); jTextField7.setText(""); jTextField10.setText(""); jTextField9.setText(""); } private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { String a,b,c,d,e,f; a=jTextField5.getText(); b=jTextField9.getText(); c=jTextField6.getText(); d=jTextField7.getText(); e=jTextField8.getText(); f=jTextField10.getText(); try { stm.executeUpdate("insert into fees_paid values("+a+","+b+",'"+c+"','"+d+"','"+e+"',"+f+");"); JOptionPane.showMessageDialog(null,"Fees Paid Successfully"); } catch (SQLException ex) { Logger.getLogger(fees.class.getName()).log(Level.SEVERE, null, ex); } } // Variables declaration - do not modify private javax.swing.JButton jButton1; private javax.swing.JButton jButton2; private javax.swing.JLabel jLabel1; private javax.swing.JLabel jLabel10; private javax.swing.JLabel jLabel11; private javax.swing.JLabel jLabel12; 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.JLabel jLabel7;
  • 68. 68 | P a g e private javax.swing.JLabel jLabel9; private javax.swing.JSeparator jSeparator1; private javax.swing.JTextField jTextField1; private javax.swing.JTextField jTextField10; private javax.swing.JTextField jTextField2; private javax.swing.JTextField jTextField3; private javax.swing.JTextField jTextField4; private javax.swing.JTextField jTextField5; private javax.swing.JTextField jTextField6; private javax.swing.JTextField jTextField7; private javax.swing.JTextField jTextField8; private javax.swing.JTextField jTextField9; // End of variables declaration }
  • 69. 69 | P a g e Frame: JFrame.java Coding for JFrame.java import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.JOptionPane; public class JFrame extends javax.swing.JFrame { Connection con= null; Statement stm=null; Statement stm1=null; ResultSet rs= null; ResultSet rt=null; String db= "jdbc:mysql://localhost/sarthak"; public JFrame() { initComponents(); try{ Class.forName("com.mysql.jdbc.Driver"); con=DriverManager.getConnection(db,"root","root"); stm=con.createStatement();} catch (ClassNotFoundException | SQLException e) { JOptionPane.showMessageDialog(null,e.getMessage()); } }
  • 70. 70 | P a g e private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) { try { new paid_1().setVisible(true); } catch (SQLException ex) { Logger.getLogger(JFrame.class.getName()).log(Level.SEVERE, null, ex); } this.dispose(); } private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { new Fees_Paid().setVisible(true); this.dispose(); } private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) { new paid_search().setVisible(true); this.dispose(); } private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) { try { new LOGIN_1().setVisible(true); } catch (ClassNotFoundException ex) { Logger.getLogger(JFrame.class.getName()).log(Level.SEVERE, null, ex); } this.dispose(); } // Variables declaration - do not modify private javax.swing.JButton jButton1; private javax.swing.JButton jButton2; private javax.swing.JButton jButton3; private javax.swing.JButton jButton4; // End of variables declaration
  • 71. 71 | P a g e Frame: Fees_Paid.java Coding for Fees_Paid.java import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import javax.swing.JOptionPane; import javax.swing.table.DefaultTableModel; public class Fees_Paid extends javax.swing.JFrame { Connection con= null; Statement stm=null; Statement stm1=null; ResultSet rs= null; ResultSet rt=null; String db= "jdbc:mysql://localhost/sarthak"; public Fees_Paid() { initComponents(); try{ Class.forName("com.mysql.jdbc.Driver");
  • 72. 72 | P a g e con=DriverManager.getConnection(db,"root","root"); stm=con.createStatement();} catch (ClassNotFoundException | SQLException e) { JOptionPane.showMessageDialog(null,e.getMessage()); } } private void formWindowGainedFocus(java.awt.event.WindowEvent evt) { DefaultTableModel tm= (DefaultTableModel) jTable1.getModel(); try {rs=stm.executeQuery("select * from fees_paid;"); int a; String r,c,n,f,s,co,k,j; while (rs.next()){ a=rs.getInt("rcp_no"); r=rs.getString("Scholar_number"); c=rs.getString("Name"); n=rs.getString("Class"); f=rs.getString("installment"); s=rs.getString("amonut"); co=rs.getString("Date"); Object rec[]={a,r,c,n,f,s,co}; tm.addRow(rec); } rs.close(); } catch (Exception e) { JOptionPane.showMessageDialog(null,e.getMessage()); } private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { DefaultTableModel tm= (DefaultTableModel) jTable1.getModel(); int x= tm.getRowCount();
  • 73. 73 | P a g e for(int i=0;i<x;i++) tm.removeRow(0); } private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) { new JFrame().setVisible(true); this.dispose(); } // Variables declaration - do not modify private javax.swing.JButton jButton1; private javax.swing.JButton jButton2; private javax.swing.JScrollPane jScrollPane1; private javax.swing.JTable jTable1; // End of variables declaration
  • 74. 74 | P a g e Frame: paid_1.java Coding for paid_1.java import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.JOptionPane; import javax.swing.table.DefaultTableModel; public class paid_1 extends javax.swing.JFrame { Connection con= null; Statement stm=null; Statement stm1=null; ResultSet rs= null; ResultSet rt=null; String db= "jdbc:mysql://localhost/sarthak"; public paid_1() throws SQLException { initComponents(); try{ Class.forName("com.mysql.jdbc.Driver"); con=DriverManager.getConnection(db,"root","root"); stm=con.createStatement();}
  • 75. 75 | P a g e catch (ClassNotFoundException | SQLException e) { JOptionPane.showMessageDialog(null,e.getMessage()); } } private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) { DefaultTableModel tm= (DefaultTableModel) jTable1.getModel(); int x= tm.getRowCount(); for(int i=0;i<x;i++) tm.removeRow(0); } private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) { new JFrame().setVisible(true); this.dispose(); } private void jTextField1KeyReleased(java.awt.event.KeyEvent evt) { DefaultTableModel tm= (DefaultTableModel) jTable1.getModel(); String l=jTextField1.getText(); try {rs=stm.executeQuery("select * from fees_paid where name='"+l+"';"); int a; String r,c,n,f,s,co,k,j; while (rs.next()){ a=rs.getInt("rcp_no"); r=rs.getString("Scholar_number"); c=rs.getString("Name"); n=rs.getString("Class"); f=rs.getString("installment"); s=rs.getString("amonut"); co=rs.getString("Date"); Object rec[]={a,r,c,n,f,s,co}; tm.addRow(rec); }
  • 76. 76 | P a g e rs.close(); } catch (Exception e) { JOptionPane.showMessageDialog(null,e.getMessage()); } String t=jTextField1.getText(); if(t.equalsIgnoreCase("")) { int x= tm.getRowCount(); for(int i=0;i<x;i++) tm.removeRow(0); } } // Variables declaration - do not modify private javax.swing.JButton jButton1; private javax.swing.JButton jButton2; private javax.swing.JButton jButton3; private javax.swing.JLabel jLabel1; private javax.swing.JScrollPane jScrollPane1; private javax.swing.JTable jTable1; private javax.swing.JTextField jTextField1; // End of variables declaration
  • 77. 77 | P a g e Frame: paid_search.java Coding for paid_search.java import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import javax.swing.JOptionPane; import javax.swing.table.DefaultTableModel; public class paid_search extends javax.swing.JFrame { Connection con= null; Statement stm=null; Statement stm1=null; ResultSet rs= null; ResultSet rt=null; String db= "jdbc:mysql://localhost/sarthak"; public paid_search() { initComponents(); try{
  • 78. 78 | P a g e Class.forName("com.mysql.jdbc.Driver"); con=DriverManager.getConnection(db,"root","root"); stm=con.createStatement();} catch (ClassNotFoundException | SQLException e) { JOptionPane.showMessageDialog(null,e.getMessage()); } } private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { new JFrame().setVisible(true); this.dispose(); } private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) { DefaultTableModel tm= (DefaultTableModel) jTable1.getModel(); String l=jTextField1.getText(); try {rs=stm.executeQuery("select * from fees_paid where class='"+l+"';"); int a; String r,c,n,f,s,co,k,j; while (rs.next()){ a=rs.getInt("rcp_no"); r=rs.getString("Scholar_number"); c=rs.getString("Name"); n=rs.getString("Class"); f=rs.getString("installment"); s=rs.getString("amonut"); co=rs.getString("Date"); Object rec[]={a,r,c,n,f,s,co}; tm.addRow(rec); } rs.close(); } catch (Exception e)
  • 79. 79 | P a g e { JOptionPane.showMessageDialog(null,e.getMessage()); } } private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) { DefaultTableModel tm= (DefaultTableModel) jTable1.getModel(); int x= tm.getRowCount(); for(int i=0;i<x;i++) tm.removeRow(0); } // Variables declaration - do not modify private javax.swing.JButton jButton1; private javax.swing.JButton jButton2; private javax.swing.JButton jButton3; private javax.swing.JLabel jLabel1; private javax.swing.JScrollPane jScrollPane1; private javax.swing.JTable jTable1; private javax.swing.JTextField jTextField1; // End of variables declaration
  • 80. 80 | P a g e Frame: view_class.java Coding for view_class.java import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.JOptionPane; import javax.swing.table.DefaultTableModel; public class view_class extends javax.swing.JFrame { Connection con= null; Statement stm=null; ResultSet rs= null; String db= "jdbc:mysql://localhost/sarthak"; public view_class() { initComponents(); try{ Class.forName("com.mysql.jdbc.Driver"); con=DriverManager.getConnection(db,"root","root");
  • 81. 81 | P a g e stm=con.createStatement();} catch (ClassNotFoundException | SQLException e) { JOptionPane.showMessageDialog(null,e.getMessage()); } } private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { try { new LOGIN_1().setVisible(true); } catch (ClassNotFoundException ex) { Logger.getLogger(view_class.class.getName()).log(Level.SEVERE, null, ex); } this.dispose(); } private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) { DefaultTableModel tm= (DefaultTableModel) jTable1.getModel(); int x= tm.getRowCount(); for(int i=0;i<x;i++) tm.removeRow(0); } private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) { DefaultTableModel tm= (DefaultTableModel) jTable1.getModel(); try {rs=stm.executeQuery("select * from class order by class;"); int a,c,n,f; String r,s; while (rs.next()){ a=rs.getInt("Class"); r=rs.getString("Section"); c=rs.getInt("Boys"); n=rs.getInt("Girls"); f=rs.getInt("Total"); s=rs.getString("Class_Teacher");
  • 82. 82 | P a g e Object rec[]={a,r,c,n,f,s}; tm.addRow(rec); } rs.close(); } catch (Exception e) { JOptionPane.showMessageDialog(null,e.getMessage()); } } // Variables declaration - do not modify private javax.swing.JButton jButton1; private javax.swing.JButton jButton2; private javax.swing.JButton jButton3; private javax.swing.JScrollPane jScrollPane1; private javax.swing.JTable jTable1; // End of variables declaration
  • 83. 83 | P a g e Frame: staff_del.java Coding for staff_del.java import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.JOptionPane; public class staff_del extends javax.swing.JFrame { Connection con= null; Statement stm=null; ResultSet rs= null; String db= "jdbc:mysql://localhost/sarthak"; public staff_del() { initComponents(); try{ Class.forName("com.mysql.jdbc.Driver"); con=(com.mysql.jdbc.Connection) DriverManager.getConnection(db,"root","root"); stm=(com.mysql.jdbc.Statement) con.createStatement();} catch (ClassNotFoundException | SQLException e) { JOptionPane.showMessageDialog(null,e.getMessage()); } } private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
  • 84. 84 | P a g e String a=jTextField1.getText(); String r=null; try { rs=stm.executeQuery("select emp_no from staff;"); while(rs.next()) { r=rs.getString("emp_no"); } if(a.equals(r)) { stm.executeUpdate("delete from STAFF where emp_no="+a+";"); JOptionPane.showMessageDialog(null,"Entry Deleted Successfully"); } else { JOptionPane.showMessageDialog(null,"Not Entry Found By This Employ Number"); } } catch(Exception e) { JOptionPane.showMessageDialog(null,e.getMessage()); } } private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) { try { new LOGIN_1().setVisible(true); } catch (ClassNotFoundException ex) { Logger.getLogger(staff_del.class.getName()).log(Level.SEVERE, null, ex); } this.dispose(); } // Variables declaration - do not modify private javax.swing.JButton jButton1; private javax.swing.JButton jButton2;
  • 85. 85 | P a g e private javax.swing.JLabel jLabel1; private javax.swing.JTextField jTextField1; // End of variables declaration
  • 86. 86 | P a g e 7. User Manual 7.1 How to installSoftware: Hardware Requirement-  PC with Updated OS and Processors  1 GB RAM and 250 GB HDD space( for Database) is desirable  Standard I/O devices like Keyboard and Mouse etc.  Printer is needed for hard-copy reports.  Local Area Network(LAN) is required for Client-Server Installation Software Requirement-  Windows XP/7/8 OS is desirable  Netbeans ver 8.1 or higher should be installed with JDK and JVM  MySQL Ver 5.1 Database Installation- The software project is distributed with a backup copy of a Database named sarthak with required tables. Some dummy records are present in the tables for testing purposes, which can be deleted before inserting real data. The project is shipped with sarthak.SQL file which installs a database and tables in the computer system. Note: The PC must have MySQL server with user (root) and password (root) . If root password is any other password, it can be changed by running MySQL Server Instance Configure Wizard. Start Program  MySQL MySQL Server MySQL Server Instance Config Wizard Provide current password of root and new password as “root” , this will change the root password. To install a MySQL database from a dump file ( sarthak.sql) , simply follow the following steps. Step 1: Copy the sarthak.sql file in C:Program filesMysqlMySql server 5.1Bin folder. Step 2: Open MySQL and type the following command to create the dabase named Library. mysql> create database sarthak; Step 3: Open Command Window (Start Run  cmd) Step 4: Go to the following folder using CD command of DOS. C:Program filesMysqlMySql server 5.1Bin>
  • 87. 87 | P a g e Step 5: type the following command on above prompt - C:….bin> mysql -u root -proot sarthak < sarthak.sql This will create a Library databse with required tables.
  • 88. 88 | P a g e 8. References In order to work on this project titled –School Management, the following books and literature are refered by me during the various phases of development of the project. 1. Information Pratices by Sumitra Arora 2. Arihant Publication 3. NCERT & KVS Notes 4. www.w3schools.com 5. www.google.co.in 6. cbse.nic.in 7. www.mycbseguide.com