Professional Documents
Culture Documents
I
uhttps://drive.google.com/file/d/1D5XNedsDcro2tOszKX
mgY4W9ZpxsGEwX/view?usp=drivesdkmatics 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.
Gaurav
Kumar.
Class
XIIth
Contents
………………………… ……………………………..--------------------------------------3
the database for easy access and interface to the database. Using
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 Storing Student
Details.
During coding and design of the software Project, Java NetBeans IDE, a
powerful front-end tool is used for getting Graphical User Interface (GUI)
✓ To provide a user friendly, Graphical User Interface (GUI) based integrated and
centralized environment for MIS activities.
✓ The proposed system should maintain all the records and transactions, and should generate
the required reports and information when required.
In its current scope, the software enables user to retrieve and update the information from
centralized database designed with MySQL . This software does not require much training time of
the users due to limited functionality and simplicity.
During the development of Public Library Information 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 of the developer, 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. There is no provision to calculate fine or penalty etc. for defaulter members; however it
can be developed easily with the help of adding modules.
3. Some application area like accounting of books and fines etc. are not implemented in the
project. It facilitates librarian to record and update only transaction record.
3. System Implementation
HP PC with i7 processor or sometimes, PC with (2.40 GHz) processor having 8GB RAM,
Table Design:
The database Student contains 2 tables. The tables are normalized to minimize the redundancies
of data and enforcing the validation rules of the organization. The tables are designed to store
records. The tables and their structure are given below.
Table: St
Column Name Type Size Null Key
S_ID Integer 0011 No Primary Key
Fname Varchar 0050 Yes
Lname Varchar 0050 Yes
CLASS Integer 0002 Yes
Aadhar_no Char 0012 Yes
E_mail Varchar 0012 Yes
Per_co Char 0010 Yes
Pa_contact Char 0010 Yes
cur_address Varchar 0100 Yes
Home_address Varchar 0100 Yes
POST Char 0006 Yes
Gender Char 0006 Yes
SECTION Char 0008 Yes
DOB Date Yes
Path Varchar 2000 Yes
Table: Login_Info
Column Name Type Size Null Key
Username Varchar 500 Yes Primary Key
Date Varchar 500 Yes
Time Varchar 500 Yes
Remark varchar 007 Yes
Table: ids
Column Name Type Size Null Key
Username Varchar 200 Yes Primary key
Password Varchar 100 Yes
MySQL Commands
Create database student;
Use student;
CREATE TABLE
student(
Fname varchar(50),
Lname varchar(50)
CLASS int(2),
Aadhar_no char(12),
E_mail varchar(100),
per_Contact char(10),
pa_Contact char(10),
cur_address varchar(100),
Home_address varchar(100),
POST char(6),
Gender char(6,
SECTION char(8),
DOB date,
path varchar(2000)
);
Date Varchar(500),
Time Varchar(500),
Remark Varchar(7)
);
Password Varchar(100)
);
4.3 jFrames Design & Event Coding:
The software project for Student contains various forms along with programming codes. Forms
(JFrames) and their event coding are given below.
Frame: Login.java
Coding:-
private void formWindowOpened(java.awt.event.WindowEvent evt) {
get_pass.setVisible(false);
jLabel3.setVisible(false);
this.setVisible(false);
JOptionPane.showMessageDialog(null, "Welcome to Vidyarthy Darpan App...!!!");
this.setVisible(true);
try
{
String Date="Select Date(now()), time(now());";
Class.forName("java.sql.Driver");
Connection con= (Connection) DriverManager.getConnection("jdbc:mysql://localhost", "root", "");
Statement stmt=(Statement) con.createStatement();
ResultSet rs= stmt.executeQuery(Date);
while(rs.next())
{
String d,t;
d=rs.getString("Date(now())");
t=rs.getString("time(now())");
date.setText("Date:- "+d);
time.setText("Time:- "+t);
}
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,"Error in Conectivity", "ERROR",
JOptionPane.ERROR_MESSAGE);
}
}
try
{
String u,p;
u=username.getText().toUpperCase();
p=pass.getText();
String insert ="select password from ids where username = '"+u+"';";
Class.forName("java.sql.Driver");
Connection con= (Connection) DriverManager.getConnection("jdbc:mysql://localhost/student", "root", "");
Statement stmt= (Statement) con.createStatement();
ResultSet rs =stmt.executeQuery(insert);
while(rs.next())
{
String ps=rs.getString("password");
get_pass.setText(ps);
}
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,"Error in Conectivity", "ERROR",
JOptionPane.ERROR_MESSAGE);
}
try
{
String remark ="Fail",Pass=pass.getText();
if(pass.getText().equals(get_pass.getText()))
remark="Pass";
jLabel3.setText(remark);
String insrt ="insert into login_info values('"+username.getText()+"',date(now()),time(now()),'"+jLabel3.getText()
+"');";
Class.forName("java.sql.Driver");
java.sql.Connection con= (java.sql.Connection) DriverManager.getConnection("jdbc:mysql://localhost/student",
"root", "");
java.sql.Statement stmt= (java.sql.Statement) con.createStatement();
stmt.executeUpdate(insrt);
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,"Error in Conectivity", "ERROR", JOptionPane.ERROR_MESSAGE);
}
if(pass.getText().equals(get_pass.getText()))
{
this.setVisible(false);
JOptionPane.showMessageDialog(null, "WELCOME!!!");
new Student_Manager().setVisible(true);
}
else
{
JOptionPane.showMessageDialog(null, "This Username & Password you have entered is not correct. Try
Again!!!");
}
}
For Login.java
Control Name of Control Purpose
1. jMenuBar 1. date To Display the Current Date
2. time To Display the Current Time
2. jButton 1. Login To Login(Enter) into the Program
2. Exit To Exit the Program
3. create Go to Create new User-ID Page
3. jTextField 1. username User can Enter their username
4. jPasswordField 1. pass User can Enter their Secrete
Password
Frame: CREATE.java
Coding:-
private void formWindowOpened(java.awt.event.WindowEvent evt) {
try
{
String Date="Select Date(now()), time(now());";
Class.forName("java.sql.Driver");
Connection con= (Connection) DriverManager.getConnection("jdbc:mysql://localhost", "root", "");
Statement stmt=(Statement) con.createStatement();
ResultSet rs= stmt.executeQuery(Date);
while(rs.next())
{
String d,t;
d=rs.getString("Date(now())");
t=rs.getString("time(now())");
date.setText("Date:- "+d);
time.setText("Time:- "+t);
}
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,"Error in Conectivity", "ERROR", JOptionPane.ERROR_MESSAGE);
}
}
For CREATE.java
Control Name of Control Purpose
1. jMenuBar 1. date To Display the Current Date
2. time To Display the Current Time
2. jButton 1. create To Create the new User-ID
2. logout To Logout from the Program
3. jTextField 1. username User can Enter their username
4. jPasswordField 1. pass User can Enter their Secrete
2. C_pass Password
To Confirm user’s, Secrete Passwor d
Frame: Student_Manager.java
Coding:-
private void formWindowOpened(java.awt.event.WindowEvent evt) {
try
{
String Date="Select Date(now()), time(now());";
Class.forName("java.sql.Driver");
Connection con= (Connection) DriverManager.getConnection("jdbc:mysql://localhost", "root", "");
com.mysql.jdbc.Statement stmt=(com.mysql.jdbc.Statement) con.createStatement();
ResultSet rs= stmt.executeQuery(Date);
while(rs.next())
{
String d,t;
d=rs.getString("Date(now())");
t=rs.getString("time(now())");
date.setText("Date:- "+d);
time.setText("Time:- "+t);
}
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,"Error in Conectivity", "ERROR", JOptionPane.ERROR_MESSAGE);
}
}
For Student_Manager.java
Control Name of Control Purpose
1. jMenuBar 1. date To Display the Current Date
2. time To Display the Current Time
2. jButton 1. Logout To Logout from the Program
2. Student_manager To jump on Student-detail Page
3. show_Records To jump on Show all Records Page
4. Login_info To jump on Login-Info Page
Frame: Login_Information.java
Coding:-
private void formWindowOpened(java.awt.event.WindowEvent evt) {
DefaultTableModel model= (DefaultTableModel) jTable1.getModel();
jTable1.setVisible(true);
try
{
String s="Select * From login_info;";
Class.forName("java.sql.Driver");
Connection con=(Connection)DriverManager.getConnection("jdbc:mysql://localhost/student", "root", "");
Statement stmt= (Statement) con.createStatement();
ResultSet rs =stmt.executeQuery(s);
int row=model.getRowCount();
for(int i=1;i<=row;i++)
{
model.removeRow(0);
}
while(rs.next())
{
String n,d,t,r;
n=rs.getString("username");
d=rs.getString("Date");
t=rs.getString("Time");
r=rs.getString("Remark");
model.addRow(new Object[] {n,d,t,r});
}
}
catch(Exception e)
{ }
}
For Login_information.java
Control Name of Control Purpose
1. jButton 1. Back To Back on Student-Manager Page
2. jTable 1. show To show records related to login-Info
Frame: Show_records.java
Coding:-
private void formWindowOpened(java.awt.event.WindowEvent evt) {
try
{
String Date="Select Date(now()), time(now());";
Class.forName("java.sql.Driver");
Connection con= (Connection) DriverManager.getConnection("jdbc:mysql://localhost", "root", "");
com.mysql.jdbc.Statement stmt=(com.mysql.jdbc.Statement) con.createStatement();
ResultSet rs= stmt.executeQuery(Date);
while(rs.next())
{
String d,t;
d=rs.getString("Date(now())");
t=rs.getString("time(now())");
date.setText("Date:- "+d);
time.setText("Time:- "+t);
}
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,"Error in Conectivity", "ERROR", JOptionPane.ERROR_MESSAGE);
}
DefaultTableModel model= (DefaultTableModel) jTable1.getModel();
try
{
String s="Select * From st;";
Class.forName("java.sql.Driver");
Connection conn= (Connection) DriverManager.getConnection("jdbc:mysql://localhost/student", "root", "");
Statement stmt= (Statement) conn.createStatement();
ResultSet rs =stmt.executeQuery(s);
while(rs.next())
{
String
SID,FNAME,LNAME,DOB,SEX,CLASS,SECTION,AADHAR,MAIL,CONTACT,PCONTACT,CADDRESS,HAD
DRESS,POST;
SID=rs.getString("S_ID");
FNAME=rs.getString("Fname");
LNAME=rs.getString("Lname");
CLASS=rs.getString("CLASS");
AADHAR=rs.getString("Aadhar_no");
MAIL=rs.getString("E_mail");
CONTACT=rs.getString("per_Contact");
PCONTACT=rs.getString("pa_Contact");
CADDRESS=rs.getString("cur_address");
HADDRESS=rs.getString("Home_address");
POST=rs.getString("POST");
SEX=rs.getString("gender");
SECTION=rs.getString("SECTION");
DOB=rs.getString("DOB");
model.addRow(new Object[]
{SID,FNAME,LNAME,DOB,SEX,CLASS,SECTION,AADHAR,MAIL,CONTACT,PCONTACT,CADDRESS,HA
DDRESS,POST});
}
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,"Error in Conectivity", "ERROR", JOptionPane.ERROR_MESSAGE);
}
}
private void search_TFKeyReleased(java.awt.event.KeyEvent evt) {
DefaultTableModel model= (DefaultTableModel) jTable1.getModel();
try
{
String ID=search_TF.getText();
String s="Select * From st where S_ID='"+ID+"';";
Class.forName("java.sql.Driver");
Connection con= (Connection) DriverManager.getConnection("jdbc:mysql://localhost/student", "root", "");
Statement stmt= (Statement) con.createStatement();
ResultSet rs =stmt.executeQuery(s);
int r=model.getRowCount();
for(int i=1;i<=r;i++)
{
model.removeRow(0);
}
while(rs.next())
{
String
SID,FNAME,LNAME,DOB,SEX,CLASS,SECTION,AADHAR,MAIL,CONTACT,PCONTACT,CADDRESS,HAD
DRESS,POST;
SID=rs.getString("S_ID");
FNAME=rs.getString("Fname");
LNAME=rs.getString("Lname");
CLASS=rs.getString("CLASS");
AADHAR=rs.getString("Aadhar_no");
MAIL=rs.getString("E_mail");
CONTACT=rs.getString("per_Contact");
PCONTACT=rs.getString("pa_Contact");
CADDRESS=rs.getString("cur_address");
HADDRESS=rs.getString("Home_address");
POST=rs.getString("POST");
SEX=rs.getString("gender");
SECTION=rs.getString("SECTION");
DOB=rs.getString("DOB");
model.addRow(new Object[]
{SID,FNAME,LNAME,DOB,SEX,CLASS,SECTION,AADHAR,MAIL,CONTACT,PCONTACT,CADDRESS,HA
DDRESS,POST});
}
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,"Error in Conectivity", "ERROR", JOptionPane.ERROR_MESSAGE);
}
}
For Show_records.java
Control Name of Control Purpose
1. jMenuBar 1. date To Display the Current Date
2. time To Display the Current Time
2. jButton 1. Back To Back on Student-Manager Page
3. jTable 2. show To show all details related to
Students
Frame: Student_detail.java
Coding:-
private void formWindowOpened(java.awt.event.WindowEvent evt) {
update.setEnabled(false);
path.setVisible(false);
changeID.setEnabled(false);
updateRecord.setEnabled(false);
section.setEnabled(false);
section_CB.setEnabled(false);
try
{
String Date="Select Date(now()), time(now());";
Class.forName("java.sql.Driver");
Connection con= (Connection)DriverManager.getConnection("jdbc:mysql://localhost", "root", "");
com.mysql.jdbc.Statement stmt=(com.mysql.jdbc.Statement) con.createStatement();
ResultSet rs= stmt.executeQuery(Date);
while(rs.next())
{
String d,t;
d=rs.getString("Date(now())");
t=rs.getString("time(now())");
date.setText("Date:- "+d);
time.setText("Time:- "+t);
}
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,"Error in Conectivity", "ERROR", JOptionPane.ERROR_MESSAGE);
}
}
section.setEnabled(false);
section_CB.setEnabled(false);
studentID_TF.setText("");
fname_TF.setText("");
lname_TF.setText("");
dob_TF.setText("");
class_TF.setText("");
aadhar_TF.setText("");
email_TF.setText("");
percontact_TF.setText("");
patcontact_TF.setText("");
curaddress_TF.setText("");
hometaddress_TF.setText("");
post_TF.setText("");
search_TF.setText("");
sex.setSelectedIndex(0);
section_CB.setSelectedIndex(-1);
changeID.setSelected(false);
updateRecord.setSelected(false);
changeID.setEnabled(false);
updateRecord.setEnabled(false);
}
catch (Exception e)
{
JOptionPane.showMessageDialog(null,"Error in Conectivity", "ERROR", JOptionPane.ERROR_MESSAGE);
}
}
private void exitPActionPerformed(java.awt.event.ActionEvent evt) {
System.exit(0);
}
For Student_detail.java
5. User Manual
Database Installation
The software project is distributed with a backup copy of a Database named Student 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 Student.SQL file which installs a
database and tables in the computer system.
Note:- The PC must have MySQL server with user (root) and password ( ) . 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 “” , this will change the root password.
To install a MySQL database from a dump file ( Student.sql), simply follow the following steps.
Step 1: Copy the Student.sql file in C:\Program files\Mysql\MySql server 5.1\Bin folder.
Step 2: Open MySQL and type the following command to create the dabase named Student.