Computer Project On Databae Connectivity
Computer Project On Databae Connectivity
Database Connectivity
CERTIFICATE
This project on Student
Information System using
database connectivity in JAVA
has been satisfactorily
completed and submitted by
Shubhankar, studying in St.
Michaels High School in
class12 E.
Board Roll No.:
_________________
Teachers Signature
Date:
ACKNOWLEDGEMENT
I express my gratitude towards every individual
under whose able guidance and support, I could
take up the project on Student Information
Record and complete it successfully.
I would like to thank my IP teacher, Mr. Ashutosh
Kumar who gave all the information required for
the project and guided us throughout. I also
extend my heartfelt gratitude towards my
parents and friends who supported me
throughout the project. THANK YOU!
CONTENTS
S.No.
TOPIC
Pg.No.
Introduction
MySQL
Student Record
Database
Netbeans IDE
10
Log-In Page
11
Home Page
14
Add Page
19
Delete Page
23
10
Update Page
31
11
Show Page
39
12
Conclusion
43
13
Bibliography
44
INTRODUCTION
Few years back, all information management
records used to be manual. As a result, wrong
counting or miscalculations created a lot of
problem. The development of a computerized
information record system changed this. There
was a decrease in paperwork and time was
saved, also increasing accuracy and efficiency. In
the following project on Student Information
Record, Netbeans IDE was selected as the front
end and MySQL as the back end. The application
is protected by a password, thus ensuring
security.
INTRODUCTION
On entering the correct log-in ID and the
password in the Log-In Page, the Home Page
appears where there are buttons leading to
other windows for adding, deleting, updating
and showing the entered records. The java
project is linked to the Student Record
database in MySQL server. The various
buttons direct the server to add, delete or
update the records using the Admission
Number as a reference, while the Show button
shows all the pre-existing records in the
database.
MySQL
STUDENT RECORD
DATABASE
NETBEANS IDE
ADDING JDBC
CONNECTOR
COMPONENTS OF
LOG-IN PAGE
head [ jLabel ]
l1 [ jLabel ]
l2 [ jLabel ]
tf1 [ jTextField ]
pf1 [ jPasswordField ]
b1 [ jButton ]
COMPONENTS OF
HOME PAGE
head1 [ jLabel ]
head2 [ jLabel ]
info [ jLabel ]
b1 [ jButton ]
b2 [ jButton ]
COMPONENTS OF
HOME PAGE
b3 [ jButton ]
b4 [ jButton ]
b5 [ jButton ]
welcome [ jTextArea ]
COMPONENTS OF
ADD PAGE
head [ jLabel ]
l1 [ jLabel ]
l2 [ jLabel ]
l3 [ jLabel ]
l4 [ jLabel ]
l5 [ jLabel ]
COMPONENTS OF
ADD PAGE
tf1 [ jTextField
tf2 [ jTextField
tf3 [ jTextField
tf4 [ jTextField
tf5 [ jTextField
b1 [ jButton ]
]
]
]
]
]
b2 [ jButton ]
b3 [ jButton ]
COMPONENTS OF
DELETE PAGE
head [ jLabel ]
info [ jLabel ]
l0 [ jLabel ]
tf0 [ jTextField ]
b1 [ jButton ]
b2 [ jButton ]
COMPONENTS OF
DELETE PAGE
b3 [ jButton ]
b3 [ jButton ]
tf0 [ jTextField ]
jPanel1 [ jPanel ]
tf1
tf2
tf3
tf4
tf5
[
[
[
[
[
jLabel
jLabel
jLabel
jLabel
jLabel
]
]
]
]
]
COMPONENTS OF
DELETE PAGE
jPanel1 [ jPanel ]
l1 [ jLabel ]
l2 [ jLabel ]
l4 [ jLabel ]
l3 [ jLabel ]
l5 [ jLabel ]
import javax.swing.*;
import java.sql.*;
private void
b1ActionPerformed(java.awt.event.ActionEvent evt) {
String qr = tf0.getText();
try{
Class.forName("java.sql.Driver");
Connection con =
DriverManager.getConnection("jdbc:mysql://localhost/pr
oject","root","password");
Statement stmt = con.createStatement();
String query = "select * from student_record where
adm_no"+qr+";";
ResultSet rs = stmt.executeQuery(query);
String t1 = rs.getString(1);
int t2 = rs.getInt(2);
int t3 = rs.getInt(3);
String t4 = rs.getString(4);
int t5 = rs.getInt(5);
COMPONENTS OF
UPDATE PAGE
head [ jLabel ]
info [ jLabel ]
l0 [ jLabel ]
tf0 [ jTextField ]
b1 [ jButton ]
b2 [ jButton ]
COMPONENTS OF
UPDATE PAGE
b3 [ jButton ]
b3 [ jButton ]
tf0 [ jTextField ]
jPanel1 [ jPanel ]
tf1 [ jTextField ]
tf2 [ jTextField ]
Enabled : false
tf4 [ jTextField ]
Enabled : false
tf3 [ jTextField ]
Enabled : false
Enabled : false
tf1 [ jTextField ]
Enabled : false
COMPONENTS OF
UPDATE PAGE
jPanel1 [ jPanel ]
l1 [ jLabel ]
l2 [ jLabel ]
l4 [ jLabel ]
l3 [ jLabel ]
l5 [ jLabel ]
COMPONENTS OF
SHOW PAGE
head [ jLabel ]
tab1 [ jTable ]
Model :
Rows : 0
Columns : 5
1. Name
2. Adm.No.
3. Class
4. Section
5. Roll
b1 [ jButton ]
b2 [ jButton ]
CONCLUSION
With the advancement of technology, our
information systems became computerized. In
schools, the student information record stores
every data of every student who has ever
enrolled in the school, whether a present
student or an alumnus. This project helped me
to understand the functioning of such
information systems, what happens on the
screen and what happens inside. This was a
knowledge gaining project and it brought
several new facts. The experience of taking up
the project and completing it successfully was
truly an amazing experience.
BIBLIOGRAPHY
www.google.com
www.wikipedia.com
Netbeans-8.0.2
Mysql