Student Management System: Project Report On
Student Management System: Project Report On
STUDENT MANAGEMENT
SYSTEM
OF
BACHELOR OF ARTS
fulfillment of the requirement for the award of degree of B.A from Vedic
due acknowledgement has been made in the text to all other material
used.
Date:
Name of Student
SWEETI PANWAR
Certificate
This is to Certify that Report Entitled “STUDENT
work has not been submitted earlier for the award of any degree
Date:
Name of Faculty
Dr. Anita Singh
Designation- Lecturer
Computer Application
ACKNOWLEDGEMENT
In the end I will not be doing justice if I fail to mention all my friend
and colleagues who have helped me the completion of my study.
CONTENTS
Introduction
Future Prospects
Overview of Project
DFD
Table
SNAPSHOT
Coding
Conclusion
Future Scope
Bibliography
INTRODUCTION
BASIC FEATURES:
Home Page: This is a welcome page. There is a link for login on this page.
Administrator Login: Administrator can login his/her login account by proper login
name and password.
Next page: This page is for addition, deletion and updating of the records of a
student.
NEED FOR COMPUTERIZATION
Time saving:
Using computers can save a lot of time. This is Possible, as
Computers are fast, efficient and more accurate as
compared to human beings.
Quick Reports:
A computerized system can help on generating different types
of reports. This can be done easily by merely pressing few keys.
Reports can be easily obtained at the spur of the moment
unlike a manual system.
Economical:
Due to computerization more accurate functioning can be
obtained as compared to manual systems in long term.
Decreased Number of People:
Computerization will decrease manpower dependence. It
will decrease the number of people required for managing
the study centre.
OVERVIEW OF THE PROJECT
In general data base collection is carried out on paper. There are number of
courses in the institute and each course has number of students associated
with it. Thus maintaining different records of all students is varying
difficult. The drawback of the system is that maintaining this information is
very bulky and cumbersome. In this manual system till now whole work is
done on paper,
Which needs a lot of clerical work?
2. Error Rate:
The chances of error are very high in manual system, which may lead to
wrong results. Often correcting these errors needs lots of efforts aside
this there is no surety of correctness.
Administrator’s view:
From administrator’s point of view the process is an ongoing
process. The administrator performs following activities:
Addition of student’s record
Deletion of student’s record
Modification of student’s record
Updation of student’s record
System Environment
Hardware Specification:
Hardware is a term given to machinery itself and to various pieces of equipment. It
refers to physical devices of a computer system. Thus, the input, storage, processing,
control and output devices are hardware.
Software Specification:
Software means a program where the object is to enhance the capabilities of the
hardware machine.
The following define the software of the proposed system development:
Performance Requirements
Good band width, less congestion on the network. Identifying the shortest route to
reach the destination would enhance performance.
Safety Requirements
No harm is expected from the use of the product either to the OS or any data that
resides on the client system.
Product Security Requirements
The product is protected from un-authorized users from using it. The system allows
only authenticated users to work on the application. The users of the system are
Admin, passport officer, crime officer, RTA officer and the citizen.
FEASIBILITY STUDY:
Preliminary investigation examines project feasibility; the likelihood the
system will be useful to the organization. The main objective of the feasibility study is
to test Technical, Operational and Economical feasibility for adding new modules and
debugging old running system. All systems are feasible if they are given unlimited
resources and infinite time.There are aspects in the feasibility study portion of the
preliminary investigation:
Operational feasibility
Technical feasibility
Economical feasibility
1. OPERATIONAL FEASIBILITY:
2. TECHNICAL FEASIBILITY:
3. ECONOMIC FEASIBILITY:
The system is economically feasible keeping in mind:
Lesser investment towards training.
One time investment towards development.
Minimizing recurring expenditure towards training, facilities offered and
consumables.
The system as a whole is economically feasible over a period of time.
SYSTEM DESIGN
Information systems are meant for designing the solution to a business problem.
Design depends the requirement provide in analysis into possible ways of meeting
them. There are many potential solutions to a specific problem and analyst will
identify some of these and consider the relative merits of each in tern.
Logical design: The designer produces a specification of the major feature of the new
system, which meets the system objective. It includes the current requirement of the
following system components.
Physical design: It takes this logical design scheme and produces the program
specifications, physical file and database definition and user interfaces for the selected
target hardware software. These programs and files will fulfill the logical design
requirement but may be subject to some constraints and compromise.
'SECURITY MEASURES
To ensure that the system does not halt in case of undesired situation or events, the
Following exceptional condition were taken care of by providing the corresponding
Exception responses while developing the system:
LOGIN NAME
PASSWORD
LOGIN
E-R DIAGRAM
ADDRESS ID NO
YEAR
NAME
COURSE
CODE FATHER’S
STUDENT NAME
PHONE
CORSE NO
DATE OF
MARK SHEET BIRTH
SEX
DATA FLOW DIAGRAMS
Request Response
DATA BASE
Saving
Database
Password
Verify
Administrator Yes\No
If s
Ye
Inserting a Record
Inserting
Deleting a Record
Deleting
Searching Record
Updating
Data Base Table
NAME TYPE
ID NO NUMBER (20)
NAME VARCHAR2 (20)
FATHER_NAME VARCHAR2 (20)
DATE OF BIRTH DATE
SEX VARCHAR2 (10)
ADDRESS VARCHAR2 (50)
CORSE_CODE VARCHAR2 (20)
CORSE VARCHAR2 (10)
YEAR VARCHAR2 (10)
NAME TYPE
LOGIN NAME VARCHAR2 (20)
PASSWORD VARCHAR2 (20)
Windows Interface
Welcome Form
Login Form
Add Student Details Form
Modify / Delete Student Details
CODING
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.sql.*;
import javax.swing.table.*;
public class Student extends JFrame
{
//Declaring Variables
boolean inAnApplet = true;
final boolean shouldFill = true;
final boolean shouldWeightX = true;
xfile.addActionListener(new
MenuItemHandler());
mfile.add(xfile);
mBar.add(mfile);
setMenuBar(mBar);
}
//--------------------------Ending with the setUpMenuBar() method--------------
pan0.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),""));
pan0.setFont(tFont);
pan0.setLayout(grid);
jwelcome = new JLabel("Student Information Management System ");
Font f = new Font("Helvetica", Font.BOLD + Font.ITALIC, 30);
jwelcome.setFont(f);
gbc1.ipady=1;
gbc1.ipadx=1;
gbc1.gridx=0;
gbc1.gridy=1;
grid.setConstraints(jwelcome,gbc1);
pan0.add(jwelcome);
gbc1.ipadx = 1;
gbc1.gridx = 0;
gbc1.gridy = 3;
grid.setConstraints(cont, gbc1);
pan0.add(cont);
cont.addActionListener(new ButtonHandler());
tbPane.addTab(panelstr0, pan0);
}
//--------------------------Ending with the displayPanel0() method--------------
void displayPanel1()
{
pan1 = new JPanel(); //LOGIN TAB
pan1.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),""));
pan1.setFont(tFont);
pan1.setLayout(grid);
jlogin = new JLabel("Login Name ");
jlogin.setFont(dFont);// Make this Data Font that we declared
before
//gbc1.weightx = 0.0; //Horizontal Space not required here
gbc1.weighty = 0.0;
gbc1.anchor = GridBagConstraints.WEST;
gbc1.gridwidth = 5;
gbc1.gridx = 1;
gbc1.gridy = 0;
grid.setConstraints(tlogname, gbc1);
pan1.add(tlogname);
jpass = new JLabel("Password");
jpass.setFont(dFont);
gbc1.ipady = 2;
gbc1.ipadx = 2;
gbc1.weighty = 0.0;
gbc1.anchor = GridBagConstraints.WEST;
gbc1.gridwidth = 5;
gbc1.gridx = 0;
gbc1.gridy = 1;
grid.setConstraints(jpass, gbc1);
pan1.add(jpass);
tlogpass = new JPasswordField(20);
gbc1.ipady = 2;
gbc1.ipadx = 2;
gbc1.weighty = 0.0;
gbc1.anchor = GridBagConstraints.WEST;
gbc1.gridwidth = 2;
gbc1.gridx = 1;
gbc1.gridy = 1;
grid.setConstraints(tlogpass, gbc1);
pan1.add(tlogpass);
login = new JButton("LOGIN");
gbc1.ipady = 2;
gbc1.ipadx = 2;
gbc1.weighty = 0.0;
gbc1.anchor = GridBagConstraints.CENTER;
gbc1.gridwidth = 1;
gbc1.gridx = 1;
gbc1.gridy = 2;
grid.setConstraints(login, gbc1);
pan1.add(login);
login.addActionListener(new ButtonHandler());
tbPane.addTab(panelstr1, pan1);
}
//------------------------------------------------------------ Ending with displayPanel1()
method -----------
//============================================================ Starting
with displayPanel2() method ===========
void displayPanel2() //ADD STUDENT DETAILS TAB
{
pan2 = new JPanel();
pan2.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),""));
pan2.setLayout(grid);
gbc1.ipadx = 2;
gbc1.gridx = 0;
gbc1.gridy = 1;
grid.setConstraints(jstudentname, gbc1);
pan2.add(jstudentname);
gbc1.ipadx = 2;
gbc1.gridx = 1;
gbc1.gridy = 1;
grid.setConstraints(tsname, gbc1);
pan2.add(tsname);
gbc1.ipadx = 2;
gbc1.gridx = 0;
gbc1.gridy = 2;
grid.setConstraints(jdob, gbc1);
pan2.add(jdob);
gbc1.ipadx = 2;
gbc1.gridx = 1;
gbc1.gridy = 2;
grid.setConstraints(tsdob, gbc1);
pan2.add(tsdob);
jfathername = new JLabel("Father Name");
jfathername.setFont(dFont);
gbc1.ipady = 2;
gbc1.ipadx = 2;
gbc1.gridx = 0;
gbc1.gridy = 3;
grid.setConstraints(jfathername, gbc1);
pan2.add(jfathername);
tsfathername = new JTextField(20);
gbc1.ipady = 2;
gbc1.ipadx = 2;
gbc1.gridx = 1;
gbc1.gridy = 3;
grid.setConstraints(tsfathername, gbc1);
pan2.add(tsfathername);
jfatheroccupation = new JLabel("Father Occupation");
jfatheroccupation.setFont(dFont);
gbc1.ipady = 2;
gbc1.ipadx = 2;
gbc1.gridx = 0;
gbc1.gridy = 4;
grid.setConstraints(jfatheroccupation, gbc1);
pan2.add(jfatheroccupation);
cb_fatheroccupation = new JComboBox();
cb_fatheroccupation.setFont(dFont);
// Adding Elements to combo box
cb_fatheroccupation.addItem(" Govt. Employee
");
cb_fatheroccupation.addItem(" Self Employed ");
cb_fatheroccupation.addItem(" Business ");
gbc1.fill = GridBagConstraints.BOTH;
gbc1.insets = new Insets(10,0,0,30);
gbc1.ipady = 2;
gbc1.ipadx = 2;
gbc1.gridx = 1;
gbc1.gridy = 4;
cb_fatheroccupation.addItemListener(new
ComboBoxListener());
grid.setConstraints(cb_fatheroccupation, gbc1);
pan2.add(cb_fatheroccupation);
jpreaddress = new JLabel("Present Address");
jpreaddress.setFont(dFont);
gbc1.ipady = 2;
gbc1.ipadx = 2;
gbc1.gridx = 0;
gbc1.gridy = 5;
grid.setConstraints(jpreaddress, gbc1);
pan2.add(jpreaddress);
tspreaddress = new JTextField(20);
gbc1.ipady = 2;
gbc1.ipadx = 2;
gbc1.gridx = 1;
gbc1.gridy = 5;
grid.setConstraints(tspreaddress, gbc1);
pan2.add(tspreaddress);
jpermaaddress = new JLabel("Permanent Address");
jpermaaddress.setFont(dFont);
gbc1.ipady = 2;
gbc1.ipadx = 2;
gbc1.gridx = 0;
gbc1.gridy = 6;
grid.setConstraints(jpermaaddress, gbc1);
pan2.add(jpermaaddress);
tspermaaddress = new JTextField(20);
gbc1.ipady = 2;
gbc1.ipadx = 2;
gbc1.gridx = 1;
gbc1.gridy = 6;
grid.setConstraints(tspermaaddress, gbc1);
pan2.add(tspermaaddress);
jphone = new JLabel(" Telephone Number ");
jphone.setFont(dFont);
gbc1.ipady = 2;
gbc1.ipadx = 2;
gbc1.gridx = 0;
gbc1.gridy = 7;
grid.setConstraints(jphone, gbc1);
pan2.add(jphone);
tsphone = new JTextField(20);
gbc1.ipady = 2;
gbc1.ipadx = 2;
gbc1.gridx = 1;
gbc1.gridy = 7;
grid.setConstraints(tsphone, gbc1);
pan2.add(tsphone);
gbc1.ipadx = 2;
gbc1.gridx = 0;
gbc1.gridy = 8;
grid.setConstraints(jgender, gbc1);
pan2.add(jgender);
male = new JRadioButton("Male",true);
male.setFont(dFont);
gbc1.fill = GridBagConstraints.BOTH;
gbc1.ipady = 2;
gbc1.ipadx = 2;
gbc1.gridx = 1;
gbc1.gridy = 8;
grid.setConstraints(male, gbc1);
male.addActionListener(new RadioListener());
bg1.add(male);
pan2.add(male);
female = new JRadioButton("Female",false);
female.setFont(dFont);
gbc1.fill = GridBagConstraints.BOTH;
gbc1.ipady = 2;
gbc1.ipadx = 2;
gbc1.gridx = 2;
gbc1.gridy = 8;
grid.setConstraints(female, gbc1);
female.addActionListener(new RadioListener());
bg1.add(female);
pan2.add(female);
jcourse = new JLabel(" Course ");
jcourse.setFont(dFont);
gbc1.ipady = 2;
gbc1.ipadx = 2;
gbc1.gridx = 0;
gbc1.gridy = 9;
grid.setConstraints(jcourse, gbc1);
pan2.add(jcourse);
cb_course = new JComboBox();
// Applying Fonts inside the combo box as
courier new
cb_course.setFont(dFont);
// Adding the elements to combo box
cb_course.addItem("BSc(Comp.Sc.)");
cb_course.addItem("BCA");
// Filling it align properly with other Elements inside the
TAB
gbc1.fill = GridBagConstraints.BOTH;
gbc1.insets = new Insets(10,0,0,30);
gbc1.ipady = 2;
gbc1.ipadx = 2;
gbc1.gridx = 1;
gbc1.gridy = 9;
cb_course.addItemListener(new
ComboBoxListener());
grid.setConstraints(cb_course, gbc1);
pan2.add(cb_course);
cb_year = new JComboBox();
cb_year.setFont(dFont);
// Adding the combo box elements to combo box
cb_year.addItem(" I Year ");
cb_year.addItem(" II Year ");
cb_year.addItem(" III Year ");
gbc1.fill = GridBagConstraints.BOTH;
gbc1.insets = new Insets(10,0,0,30);
gbc1.ipady = 2;
gbc1.ipadx = 2;
gbc1.gridx = 2;
gbc1.gridy = 9;
cb_year.addItemListener(new
ComboBoxListener());
grid.setConstraints(cb_year, gbc1);
pan2.add(cb_year);
dmc = new JCheckBox("Detail Mark Sheet Given");
//Using check boxes
gbc1.fill = GridBagConstraints.BOTH;
gbc1.ipady = 0;
gbc1.ipadx = 0;
gbc1.gridx = 1;
gbc1.gridy = 10;
grid.setConstraints(dmc, gbc1);
dmc.setFont(dFont);
dmc.addItemListener(new CheckBoxListener());
pan2.add(dmc);
gbc1.ipadx = 0;
gbc1.gridx = 2;
gbc1.gridy = 10;
grid.setConstraints(degree, gbc1);
degree.setFont(dFont);
degree.addItemListener(new
CheckBoxListener());
pan2.add(degree);
gbc1.ipadx = 0;
gbc1.gridx = 1;
gbc1.gridy = 11;
grid.setConstraints(charcerti, gbc1);
charcerti.setFont(dFont);
charcerti.addItemListener(new
CheckBoxListener());
pan2.add(charcerti);
ncc = new JCheckBox("NCC Certificate Given");
gbc1.ipady = 0;
gbc1.ipadx = 0;
gbc1.gridx = 2;
gbc1.gridy = 11;
grid.setConstraints(ncc, gbc1);
ncc.setFont(dFont);
ncc.addItemListener(new CheckBoxListener());
pan2.add(ncc);
save = new JButton("SAVE RECORD");
gbc1.ipady = 1;
gbc1.ipadx = 2;
gbc1.gridx = 2;
gbc1.gridy = 12;
grid.setConstraints(save, gbc1);
// Handling the SAVERECORD button on click event by
ButtonHandler() class
save.addActionListener(new ButtonHandler());
pan2.add(save);
tbPane.addTab(panelstr2,pan2);
}
//-------------------------------------------------------------- Ending with displayPanel2()
method ---------
//============================================================ Starting
displayPanel3() method =========
void displayPanel3() //MODIFY/DELETE STUDENT DETAILS TAB
{
pan3 = new JPanel();
pan3.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),""));
pan3.setLayout(grid);
cb_sname = new JComboBox();
cb_sname.addItem("Select Student Name");
cb_sname.setFont(dFont);
gbc2.fill = GridBagConstraints.BOTH;
gbc2.ipady = 2;
gbc2.ipadx = 2;
gbc2.gridx = 2;
gbc2.gridy = 1;
grid.setConstraints(cb_sname, gbc2);
cb_sname.addItemListener(new
ComboBoxListener());
pan3.add(cb_sname);
jmstudentname = new JLabel("Student Name");
jmstudentname.setFont(dFont);
gbc2.fill = GridBagConstraints.BOTH;
gbc2.ipady = 2;
gbc2.ipadx = 2;
gbc2.gridx = 0;
gbc2.gridy = 2;
grid.setConstraints(jmstudentname, gbc2);
pan3.add(jmstudentname);
gbc2.gridy = 2;
grid.setConstraints(tmname, gbc2);
pan3.add(tmname);
gbc2.ipadx = 2;
gbc2.gridx = 0;
gbc2.gridy = 3;
grid.setConstraints(jmdob, gbc2);
pan3.add(jmdob);
gbc2.ipadx = 2;
gbc2.gridx = 1;
gbc2.gridy = 3;
grid.setConstraints(tmdob, gbc2);
pan3.add(tmdob);
jmfathername = new JLabel("Father's Name");
jmfathername.setFont(dFont);
gbc2.ipady = 2;
gbc2.ipadx = 2;
gbc2.gridx = 0;
gbc2.gridy = 4;
grid.setConstraints(jmfathername, gbc2);
pan3.add(jmfathername);
tmfathername = new JTextField(20);
gbc2.ipady = 2;
gbc2.ipadx = 2;
gbc2.gridx = 1;
gbc2.gridy = 4;
grid.setConstraints(tmfathername, gbc2);
pan3.add(tmfathername);
jmfatheroccupation = new JLabel("Father's Occupation");
jmfatheroccupation.setFont(dFont);
gbc2.ipady = 2;
gbc2.ipadx = 2;
gbc2.gridx = 0;
gbc2.gridy = 5;
grid.setConstraints(jmfatheroccupation, gbc2);
pan3.add(jmfatheroccupation);
mcb_fatheroccupation = new JComboBox();
mcb_fatheroccupation.setFont(dFont);
// Adding the combo box elements to combo box
mcb_fatheroccupation.addItem(" Govt.
Employee ");
mcb_fatheroccupation.addItem(" Self Employed ");
mcb_fatheroccupation.addItem(" Business ");
gbc2.fill = GridBagConstraints.BOTH;
gbc2.insets = new Insets(10,0,0,30);
gbc2.ipady = 2;
gbc2.ipadx = 2;
gbc2.gridx = 1;
gbc2.gridy = 5;
mcb_fatheroccupation.addItemListener(new
ComboBoxListener());
grid.setConstraints(mcb_fatheroccupation, gbc2);
pan3.add(mcb_fatheroccupation);
gbc2.ipady = 2;
gbc2.ipadx = 2;
gbc2.gridx = 0;
gbc2.gridy = 6;
grid.setConstraints(jmpreaddress, gbc2);
pan3.add(jmpreaddress);
gbc2.ipadx = 2;
gbc2.gridx = 1;
gbc2.gridy = 6;
grid.setConstraints(tmpreaddress, gbc2);
pan3.add(tmpreaddress);
gbc2.ipady = 2;
gbc2.ipadx = 2;
gbc2.gridx = 0;
gbc2.gridy = 7;
grid.setConstraints(jmpermaaddress, gbc2);
pan3.add(jmpermaaddress);
tmpermaaddress = new JTextField(20);
gbc2.ipady = 2;
gbc2.ipadx = 2;
gbc2.gridx = 1;
gbc2.gridy = 7;
grid.setConstraints(tmpermaaddress, gbc2);
pan3.add(tmpermaaddress);
jmphone = new JLabel(" Telephone Number ");
jmphone.setFont(dFont);
gbc2.ipady = 2;
gbc2.ipadx = 2;
gbc2.gridx = 0;
gbc2.gridy = 8;
grid.setConstraints(jmphone, gbc2);
pan3.add(jmphone);
tmphone = new JTextField(20);
gbc2.ipady = 2;
gbc2.ipadx = 2;
gbc2.gridx = 1;
gbc2.gridy = 8;
grid.setConstraints(tmphone, gbc2);
pan3.add(tmphone);
gbc2.ipadx = 2;
gbc2.gridx = 0;
gbc2.gridy = 9;
grid.setConstraints(jmgender, gbc2);
pan3.add(jmgender);
gbc2.ipadx = 2;
gbc2.gridx = 1;
gbc2.gridy = 9;
grid.setConstraints(m_male, gbc2);
m_male.addActionListener(alistener);
bg2.add(m_male);
pan3.add(m_male);
m_female = new JRadioButton("Female",false);
m_female.setFont(dFont);
gbc2.fill = GridBagConstraints.BOTH;
gbc2.ipady = 2;
gbc2.ipadx = 2;
gbc2.gridx = 2;
gbc2.gridy = 9;
grid.setConstraints(m_female, gbc2);
m_female.addActionListener(alistener);
bg2.add(m_female);
pan3.add(m_female);
jmcourse = new JLabel(" Course ");
jmcourse.setFont(dFont);
gbc2.ipady = 2;
gbc2.ipadx = 2;
gbc2.gridx = 0;
gbc2.gridy = 10;
grid.setConstraints(jmcourse, gbc2);
pan3.add(jmcourse);
mcb_course = new JComboBox();
mcb_course.setFont(dFont);
// Adding the combo box elements to combo box
mcb_course.addItem("BSc(Comp.Sc.)");
mcb_course.addItem("BCA");
// Fillig it to align properly with other Elements inside the
TAB
gbc2.fill = GridBagConstraints.BOTH;
gbc2.insets = new Insets(10,0,0,30);
gbc2.ipady = 2;
gbc2.ipadx = 2;
gbc2.gridx = 1;
gbc2.gridy = 10;
mcb_course.addItemListener(new
ComboBoxListener());
grid.setConstraints(mcb_course, gbc2);
pan3.add(mcb_course);
mcb_year = new JComboBox();
mcb_year.setFont(dFont);
// Adding Elements to combo box
mcb_year.addItem(" I Year ");
mcb_year.addItem(" II Year ");
mcb_year.addItem(" III Year ");
gbc2.fill = GridBagConstraints.BOTH;
gbc2.insets = new Insets(10,0,0,30);
gbc2.ipady = 2;
gbc2.ipadx = 2;
gbc2.gridx = 2;
gbc2.gridy = 10;
mcb_year.addItemListener(new
ComboBoxListener());
grid.setConstraints(mcb_year, gbc2);
pan3.add(mcb_year);
mdmc = new JCheckBox("Detail Mark Sheet Given");
gbc2.fill = GridBagConstraints.BOTH;
gbc2.ipady = 0;
gbc2.ipadx = 0;
gbc2.gridx = 1;
gbc2.gridy = 11;
grid.setConstraints(mdmc, gbc2);
mdmc.setFont(dFont);
mdmc.addItemListener(new
CheckBoxListener());
pan3.add(mdmc);
gbc2.ipadx = 0;
gbc2.gridx = 2;
gbc2.gridy = 11;
grid.setConstraints(mdegree, gbc2);
mdegree.setFont(dFont);
mdegree.addItemListener(new
CheckBoxListener());
pan3.add(mdegree);
gbc2.ipadx = 0;
gbc2.gridx = 1;
gbc2.gridy = 12;
grid.setConstraints(mcharcerti, gbc2);
mcharcerti.setFont(dFont);
mcharcerti.addItemListener(new
CheckBoxListener());
pan3.add(mcharcerti);
mncc = new JCheckBox("NCC Certificate Given");
gbc2.ipady = 0;
gbc2.ipadx = 0;
gbc2.gridx = 2;
gbc2.gridy = 12;
grid.setConstraints(mncc, gbc2);
mncc.setFont(dFont);
mncc.addItemListener(new
CheckBoxListener());
pan3.add(mncc);
del = new JButton("DELETE");
gbc2.ipady = 2;
gbc2.ipadx = 2;
gbc2.gridx = 1;
gbc2.gridy = 13;
grid.setConstraints(del, gbc2);
pan3.add(del);
del.addActionListener(new ButtonHandler());
gbc2.ipady = 2;
gbc2.ipadx = 2;
gbc2.gridx = 2;
gbc2.gridy = 13;
grid.setConstraints(mod_button, gbc2);
pan3.add(mod_button);
mod_button.addActionListener(new
ButtonHandler());
tbPane.addTab(panelstr3, pan3);
accessStudName();
}
//-------------------------------------------------------------- Ending with displayPanel3()
method ---------
//---------------------------------------------------------------Starting with displayPanes()
method---------
void displayPanes() // ACCOUNTANT LOGGEDIN
{
displayPanel2();
displayPanel3();
}
//==========================================================
Starting with verifyLogin() =============
void verifyLogin() //Verifing Login for username 'administrator' and password
'password'
{
try
{
String val1 = tlogname.getText();
val1 = val1.trim();
String val2 = (String)tlogpass.getText();
val2 = val2.trim();
//JDBC step 1 : Writing the query
query1 = "SELECT * FROM login WHERE
login='"+val1+"' AND passwd='"+val2+"'";
//JDBC step 2 : Registering the
driver="sun.jdbc.odbc.JdbcOdbcDriver"; for MSACCESS
Class.forName(driver);
//JDBC step 3 : Using the
driver="sun.jdbc.odbc.JdbcOdbcDriver";
Connection
con=DriverManager.getConnection("jdbc:odbc:student");
//JDBC step 4 : Creating a statement
Statement st = con.createStatement();
//JDBC step 5 : Exceuting the query
boolean bresults = st.execute(query1);
//JDBC step 6 : Checking the results if(bresults)
{
ResultSet result = st.getResultSet();
//JDBC step 7 : if there are results retrieve the
SET
if(result!=null)
{
//Calling the method
"showResults(ResultSet r)" and pass ResultSet to it
showResults(result);
}
else
{
}
//JDBC step 8 : Closing the database connection
//con.close();
}
}
catch(SQLException ex)
{
System.out.println("Unable to access the database");
}
catch(ClassNotFoundException ex)
{
System.out.println("Class not found");
}
catch(Exception ex)
{
System.out.println("Exception raised is:"+ex);
}
}
//--------------------------------------------Ending with verifyLogin() method-------
//===================================================================
Starting with addRecord() method====
void addRecord()
{
try
{
Class.forName(driver);
Connection con=DriverManager.getConnection(url);
Statement st = con.createStatement();
//Generating new register number
String query2 = "SELECT * FROM student_details";
ResultSet rs = st.executeQuery(query2);
int cnt = 0;
while (rs.next())
{
cnt++;
}
cnt = cnt+1;
String cs = (String)course.substring(0,3);
char ss = year.charAt(0);
reg_no = ""+cs+""+ss+"-"+cnt;
query3 = "INSERT INTO student_details
(name,preaddress,permaaddress,fathername,dateofbirth,fatheroccupation,phone,gender,year,course,dm
c,degree,charcerti,ncccerti) VALUES ('"+tsname.getText()+"','"+tspreaddress.getText()
+"','"+tspermaaddress.getText()+"','"+tsfathername.getText()+"','"+tsdob.getText()
+"','"+foccupation+"','"+tsphone.getText()
+"','"+gender+"','"+year+"','"+course+"',"+dmcsel+","+degreesel+","+charcfsel+","+ncccfsel+")";
int rs_int=st.executeUpdate(query3);
con.close();
message_dialog = " "+tsname.getText().toUpperCase()+"
Record is Added ";
type_dialog =
JOptionPane.INFORMATION_MESSAGE;
JOptionPane.showMessageDialog((Component) null,
message_dialog, add_dialog, type_dialog);
// Adding the new record to the JTable
//===============================================================
Starting with accessModifiedDatabase() ========
void accessModifiedDatabase(int nsel)
{
try
{
query4 = "SELECT * FROM student_details WHERE
registration_no="+nsel+"";
Class.forName(driver);
Connection con=DriverManager.getConnection(url);
Statement st = con.createStatement();
boolean bresults = st.execute(query4);
if(bresults)
{
ResultSet result = st.getResultSet();
if(result!=null)
{
showModifiedResults(result);
}
con.close();
}
}
catch(SQLException ex)
{
System.out.println("Unable to access the database");
}
catch(ClassNotFoundException ex)
{
System.out.println("Class not found");
}
catch(Exception ex)
{
System.out.println("Exception raised is:"+ex);
}
}
//------------------------------------------------------------------- Ending with
accessModifiedDatabase() -------
//===============================================================
Starting with showModifiedResults() ========
}
else
{
m_female.doClick();
}
txt11 = txt11.trim();
if (txt11.equals("B.Sc.(Comp. Sc.)"))
{
mcb_course.setSelectedIndex(1);
}
else
{
mcb_course.setSelectedIndex(0);
}
txt10 = txt10.trim();
if (txt10.equals("I Year"))
{
mcb_year.setSelectedIndex(0);
}
else if(txt10.equals("II Year"))
{
mcb_year.setSelectedIndex(1);
}
else
{
mcb_year.setSelectedIndex(2);
}
if(int9==1)
{
mdmc.setSelected(true);
}
else
{
mdmc.setSelected(false);
}
if(int10==1)
{
mdegree.setSelected(true);
}
else
{
mdegree.setSelected(false);
}
if(int11==1)
{
mcharcerti.setSelected(true);
}
else
{
mcharcerti.setSelected(false);
}
if(int12==1)
{
mncc.setSelected(true);
}
else
{
mncc.setSelected(false);
}
}
//------------------------------------------------------------------- Ending with
showModifiedResults() -------
//===============================================================
Starting with accessStudName() ========
showStudName(result);
}
con.close();
}
}
catch(SQLException ex)
{
System.out.println("Unable to access the database");
}
catch(ClassNotFoundException ex)
{
System.out.println("Class not found");
}
catch(Exception ex)
{
System.out.println("Exception raised is:"+ex);
}
}
//------------------------------------------------------------------- Ending with
accessStudName() -------
//===============================================================
Starting with showStudName() ========
//===============================================================
Starting with deleteRecord() ========
void deleteRecord(int nsel) //Deleting the record for the selected student name
{
try
{
Class.forName(driver);
Connection con=DriverManager.getConnection(url);
Statement st = con.createStatement();
System.out.println("Delete name is :=="+nsel);
query6 = "DELETE FROM student_details WHERE
registration_no="+nsel;
st.executeUpdate(query6);
con.close();
mcb_course.setSelectedIndex(0);
mcb_year.setSelectedIndex(0);
tmname.setText(" ");
tmdob.setText(" ");
tmpreaddress.setText(" ");
tmpermaaddress.setText(" ");
tmfathername.setText(" ");
tmphone.setText(" ");
mdmc.setSelected(false);
mdegree.setSelected(false);
mncc.setSelected(false);
mcharcerti.setSelected(false);
m_male.doClick();
}
catch(SQLException ex)
{
System.out.println("Unable to access the database");
}
catch(ClassNotFoundException ex)
{
System.out.println("Class not found");
}
catch(Exception ex)
{
System.out.println("Exception raised is:"+ex);
}
}
//------------------------------------------------------------------- Ending with
deleteRecord() -------
//===============================================================
Starting with updateRecord() ========
String s=ev.getActionCommand();
if(s.equals("Click to Continue"))
{
cont.setEnabled(false);
displayPanel1();
tbPane.setSelectedIndex(1);
tbPane.removeTabAt(0);
}
else if(s=="LOGIN") //Login is Clicked
{
verifyLogin();
tbPane.setSelectedIndex(0);
tlogname.setText("");
}
else if(s.equals("SAVE RECORD")) //Save Record is Clicked
{
addRecord();
String snametemp = tsname.getText();
}
else if(s.equals("MODIFY")) //Modify Record is Clicked
{
int student_id=Integer.parseInt(selname.substring(0,2));
updateRecord(student_id,selname);
int x=ctr_val;
for(int y=x;y>1;y--)
{
cb_sname.removeItemAt(y);
}
cb_sname.addItem("Select Student Name");
cb_sname.removeItemAt(0);
cb_sname.removeItemAt(1);
accessStudName();
cb_sname.removeItemAt(1);
}
else if(s.equals("DELETE")) //Delete Record Button is
Clicked
{
dlgCPane.setLayout(new FlowLayout());
dlgCPane.add(jLabeldlg);
jLabeldlg.setFont(tFont);
dlgCPane.add(delit);
delit.addActionListener(new ButtonHandler());
dlgCPane.add(delno);
delno.addActionListener(new ButtonHandler());
dlg.setBounds(300, 200, 250, 120);
dlg.show();
}
else if(s.equals("YES")) //Yes button is clicked in Delete dialog
box
{
dlg.dispose();
selname = cb_sname.getSelectedItem().toString();
int student_id=Integer.parseInt(selname.substring(0,2));
deleteRecord(student_id);
int x=ctr_val;
for(int y=x;y>1;y--)
{
cb_sname.removeItemAt(y);
}
cb_sname.addItem("Select Student Name");
cb_sname.removeItemAt(0);
cb_sname.removeItemAt(1);
accessStudName();
cb_sname.removeItemAt(1);
}
condsel = e.getActionCommand();
}
}
//----------------------------------------------------------- Ending with the RadioListener
--------
//===========================================================
Starting with the ComboBoxListener ========
selname = cb_sname.getSelectedItem().toString();
accessModifiedDatabase(Integer.parseInt(selname.substring(0,2)));
}
if (e.getSource().equals(jstudID))
{
studID = jstudID.getSelectedItem().toString();
}
if (e.getSource().equals(jeq))
{
eq = jeq.getSelectedItem().toString();
}
}
}
//----------------------------------------------------------- Ending with the
ComboBoxListener --------
//===========================================================
Starting with the CheckBoxListener =====
Testing is the success of system. System tests make a logical assumption that if all the
Parts of the system are correct; the goal will be successfully achieved. A small system
Error can conceivably explode into much large problem. Effective testing early in the
Process translates directly in to long, term cost saving from a conducted number of
errors.
Another reason for system testing is its utility as a user oriented vehicle before
Implementation. The best program is worthless if does not meet user need.
System tests: System testing is designed to uncover weaknesses that were not found
in earlier tests. This includes forced system failure and validation of the local system.
As it will be implemented by the user(s) in operational environment. Generally, it
begins with Low volume of transaction based on live data. The volume is increased
until the maximum level for each transaction type reached.
User Acceptance Testing: An acceptance test has the objective of selling the user of
Validity and reliability of the system. It verifies the system produces operate to
system Specifications and that the integrity of vital is maintained. Performance an
acceptance test is actually the user’s show. User motivation and knowledge are
critical for the successful of the system. Then a comprehensive test report is prepared.
The report indicates the system‘s tolerance performance range, error rate and
accuracy.
CONCLUSION
This application gives the users a platform to easily search for the student
record that are needed by them and place orders online. The application
holds great relevance in colleges saves a lot of time and efforts. The
application provides the user a very large database at his own computer
along with the various details of the book.
The software that are used are very common in use. A person having a good
programming can easily understand the coding and the functionality if he
wants to know about the working or the coding in detail.
Thus we can say that the application helps the maintenance of large
databases which can be easily managed and maintained. The application
goes well with the demands of today’s world and can be extended to meet
the ever changing demands.
FUTURE SCOPE OF THE PROJECT
1. In the future the system will be more efficient; this project will work more
effectively. This will run as it is running today.
4. This project is built with the help of oracle and visual basic.
5. These are very widely used language. In the future demand of this language
will increase very much.
6. The other thing we can do is to make this system user friendly by make two
logins one for administrator who can modify the data inserted and other for
users who could only read the data so he can check his transactions on his
own.
Bibliography