Professional Documents
Culture Documents
Students Information System
Students Information System
Submitted to
Submitted by
JAYANTH G Y173112009
AJAY N Y173112027
KARTHIK K Y173112011
CERTIFICATE
during the academic year 2019-2020& completed the project within a period of 12 weeks.
I also declare that this project is a result of my own effort and that it has not been
submitted to any other University for the award of any degree.
Date:
Place: VIJAYAWADA
ACKNOWLEDGEMENT
It is great pleasure to take opportunity and express my gratitude to all those who
helped me throughout my project work.
I also thank to Mrs. SAI RAM, Head of the department of Computer Science. For
giving me opportunity to take up the project work and helping me through out.
I would also like to thank Mrs. SAI RAM Computer Science for his valuable
guidance and support for the completion of my project work.
I would like to express my sincere and heartful thanks to all the faculty of the
Department for their continuous cooperation, which has given me the guidance to build up
adamant aspiration over the completion of my project.
Finally I thank one and all who directly and indirectly helped me to complete my
Project successfully.
G.JAYANTH (Reg.No.Y173112009)
N.AJAY (Reg.No.Y173112027)
K.KARTHIK (Reg.No.Y173112011)
1. Introduction
The Student Management System (SMS) can handle all the details about
a Student. The details include College Course details, Students personal
details, Academic details etc., The Student Management System is an
automated version of manual Student 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.
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., you 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 products or
suppliers. 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).
A Primary key is one or more fields whose value or values uniquely identify
each record in a table. In a relationship, a primary key is used to refer to
specific record in one table from another table. A primary key is called foreign
key when it is referred to from another table.
To find and retrieve just the data that meets conditions you specify, including
data from multiple tables, create a query. A query can also update or delete
multiple records at the same time, and perform built-in or custom calculations
on your data.
Soon after, they were contacted by Roman Stanek, an entrepreneur who had
already been involved in several startups in the Czech Republic. He was
looking for a good idea to invest in, and discovered Xelfi. He met with the
founders; they hit it off, and a business was born.
Something else was afoot in the summer of 1999: Sun Microsystems wanted
better Java development tools, and had become interested in NetBeans. It was
a dream come true for the NetBeans team: NetBeans would become the
flagship tool set of the maker of Java itself! By the fall, with the next
generation of NetBeans Developer in beta, a deal was struck. Sun
Microsystems had also acquired another tools company, during the
acquisition, the young developers who had been involved in open-source
projects for most of their programming careers, mentioned the idea of open-
sourcing NetBeans. Fast forward to less than six months later, the decision
was made that NetBeans would be open sourced. While Sun had contributed
considerable amounts of code to open source projects over the years, this was
Sun's first sponsored open source project, one in which Sun would be paying
for the site and handling the infrastructure.
4. Problem Definition & Analysis
The hardest part of building a software system is deciding precisely what to build.
No other part of the conceptual work is so difficult as establishing the detailed
technical requirement. Defining and applying good, complete requirements are hard
to work, and success in this endeavor has eluded many of us. Yet, we continue to
make progress.
Problem definition describes the What of a system, not How . The quality of a
software product is only as good as the process that creates it. Problem definition is
one of the most crucial steps in this creation process. Without defining a problem,
developers do not know what to build, customers do not know what to expect, and
there is no way to validate that the built system satisfies the requirement.
Problem definition and Analysis is the activity that encompasses learning about the
problem to be solved, understanding the needs of customer and users, trying to find
out who the user really is, and understanding all the constraints on the solution. It
includes all activities related to the following:
Identification and documentation of customer’s or user’s needs.
Creation of a document that describes the external behavior and the
association constraints that will satisfies those 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 Student Information System, the proposed
System is expected to do the following: -
To provide a user friendly, Graphical User Interface (GUI) based integrated
and centralized environment for computerized Student Information System.
The proposed system should maintain all the records about student
information 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.
5. System Implementation
Table Design:
The database of Library System contains 1 table. The table is 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
table and their structure is given below.
Table: information
6.2 I/O Forms Design & Event Coding:
The software project for Student Information System contains various forms
along with programming codes. Forms (JFrames) and their event coding are
given below.
Frame: StudentInformationSystem.java
package studentinformationsystem;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class StudentInformationSystem extends JFrame {
public static void main(String[] args) {
//StudentInformationSystem sis =
new StudentInformationSystem();
JFrame f1;
JPanel p1;
JLabel l1, l2, l3;
JTextField t1;
JPasswordField pass;
JButton b1, b2;
ImageIcon img;
public StudentInformationSystem() {
p1 = new JPanel();
p1.setLayout(null);
p1.setBackground(new Color(135, 206, 250));
img = new ImageIcon(getClass().getResource(""));
img=null;
l1 = new JLabel(img);
l1.setBounds(0, 0, 215, 360);
l2 = new JLabel("Username");
l2.setBounds(230, 30, 90, 40);
l2.setFont(new Font("Serif", Font.PLAIN, 20));
l3 = new JLabel("Password");
l3.setBounds(230, 120, 100, 40);
l3.setFont(new Font("Serif", Font.PLAIN, 20));
t1 = new JTextField(30);
t1.setBounds(320, 30, 230, 35);
pass = new JPasswordField(10);
pass.setBounds(320, 120, 230, 35);
b1 = new JButton("User-Login");
b1.setBounds(230, 250, 100, 50);
b1.setBackground(new Color(204, 229, 255));
b2 = new JButton("Administrator-Login");
b2.setBounds(400, 250, 150, 50);
b2.setBackground(new Color(204, 229, 255));
p1.add(l1);
p1.add(l2);
p1.add(l3);
p1.add(t1);
p1.add(pass);
p1.add(b1);
p1.add(b2);
add(p1);
setSize(580, 390);
setVisible(true);
setResizable(false);
setLocation(370, 50);
setTitle("Student Information System");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
userlogin();
adminlogin();
}
public void userlogin() {
b1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
String puname = t1.getText();
String ppaswd = pass.getText();
if (puname.equals("user") && ppaswd.equals("user")) {
UserView re = new UserView();
re.setVisible(true);
dispose();
} else {
JOptionPane.showMessageDialog(null, "Wrong Password / Username");
t1.setText("");
pass.setText("");
t1.requestFocus();
}
}
});
}
public void adminlogin() {
b2.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
String puname = t1.getText();
String ppaswd = pass.getText();
if (puname.equals("admin") && ppaswd.equals("admin")) {
AdminFrame re = new AdminFrame();
re.setVisible(true);
dispose();
} else {
JOptionPane.showMessageDialog(null, "Wrong Password / Username");
t1.setText("");
pass.setText("");
t1.requestFocus();
}
}
});
}
Frame: AdminFrame.java
Code for adminframe:
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.sql.*;
import javax.swing.filechooser.FileNameExtensionFilter
public class AdminFrame extends JFrame {
public static void main(String[] args) {
AdminFrame admin = new AdminFrame();
}
Container c;
JPanel p1, p2, p3, p4, p5;
ImageIcon img;
JLabel l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12, l13, l14, l15;
JTextField t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15, t16, t17, t18, t19, t20,
t21;
JButton logout, save, show, attach;
JLabel attached;
static final String JDBC_DRIVER = "com.mysql.jdbc.Driver";
static final String DB_URL = "jdbc:mysql://localhost/student";
static final String USER = "admin";
static final String PASS = "admin";
String s;
AdminFrame() {
c = getContentPane();
p1 = new JPanel();
p1.setBackground(Color.blue);
p1.setBounds(0, -5, 1200, 85);
img = new ImageIcon(getClass().getResource("header.jpg"));
l1 = new JLabel(img);
p2 = new JPanel();
p2.setLayout(null);
p2.setBackground(Color.white);
p2.setBounds(0, 80, 1200, 40);
JLabel label1 = new JLabel("Fill the Following Information:");
label1.setFont(new Font(label1.getName(), Font.BOLD, 20));
label1.setForeground(Color.blue);
p2.add(label1);
label1.setBounds(20, -5, 300, 50);
save = new JButton("Save Record");
save.setBounds(950, 0, 120, 40);
save.setBackground(Color.green);
p2.add(save);
show = new JButton("show Record");
show.setBounds(1080, 0, 110, 40);
show.setBackground(Color.green);
p2.add(show);
logout = new JButton("Log-Out");
logout.setBounds(820, 0, 120, 40);
logout.setBackground(Color.green);
p2.add(logout);
p3 = new JPanel();
p3.setLayout(null);
p3.setBackground(new Color(135, 206, 250));
p3.setBounds(0, 80, 1200, 400);
p4 = new JPanel();
p4.setLayout(null);
p4.setBounds(0, 480, 1200, 50);
p4.setBackground(Color.white);
JLabel label = new JLabel("Accadamin details:");
label.setFont(new Font(label.getName(), Font.BOLD, 20));
label.setForeground(Color.blue);
p4.add(label);
label.setBounds(20, 0, 200, 50);
p5 = new JPanel();
p5.setLayout(null);
p5.setBackground(new Color(135, 206, 250));
JLabel slc = new JLabel("Level");
slc.setBounds(40, 540, 100, 30);
slc.setFont(new Font(slc.getName(), Font.BOLD, 18));
t14 = new JTextField();
t14.setBounds(20, 580, 130, 35);
t15 = new JTextField();
t15.setBounds(20, 640, 130, 35);
p5.add(slc);
p5.add(t14);
p5.add(t15);
JLabel name = new JLabel(" Name of Institute");
name.setBounds(300, 540, 200, 30);
name.setFont(new Font(name.getName(), Font.BOLD, 18));
t16 = new JTextField();
t16.setBounds(230, 580, 300, 35);
t17 = new JTextField();
t17.setBounds(230, 640, 300, 35);
p5.add(name);
p5.add(t16);
p5.add(t17);
JLabel per = new JLabel("Percentage");
per.setBounds(600, 540, 150, 30);
per.setFont(new Font(per.getName(), Font.BOLD, 18));
t18 = new JTextField();
t18.setBounds(570, 580, 250, 35);
t19 = new JTextField();
t19.setBounds(570, 640, 250, 35);
p5.add(per);
p5.add(t18);
p5.add(t19);
JLabel year = new JLabel(" Passed Year");
year.setBounds(900, 540, 200, 30);
year.setFont(new Font(year.getName(), Font.BOLD, 18));
t20 = new JTextField();
t20.setBounds(880, 580, 250, 35);
t21 = new JTextField();
t21.setBounds(880, 640, 250, 35);
p5.add(year);
p5.add(t20);
p5.add(t21);
l2 = new JLabel("Form no.:");
l2.setBounds(20, 70, 80, 30);
t1 = new JTextField(50);
t1.setBounds(90, 70, 130, 30);
l3 = new JLabel("Batch no.(Year):");
l3.setBounds(250, 70, 130, 30);
t2 = new JTextField(50);
t2.setBounds(350, 70, 150, 30);
l4 = new JLabel("Student ID no.:");
l4.setBounds(530, 70, 130, 30);
t3 = new JTextField(50);
t3.setBounds(630, 70, 150, 30);
l5 = new JLabel("First Name:");
l5.setBounds(20, 130, 80, 30);
t4 = new JTextField(50);
t4.setBounds(90, 130, 150, 30);
l6 = new JLabel("Middle Name:");
l6.setBounds(250, 130, 130, 30);
t5 = new JTextField(50);
t5.setBounds(350, 130, 160, 30);
l7 = new JLabel("Last Name:");
l7.setBounds(550, 130, 130, 30);
t6 = new JTextField(50);
t6.setBounds(630, 130, 150, 30);
l8 = new JLabel("Email:");
l8.setBounds(20, 190, 80, 30);
t7 = new JTextField(50);
t7.setBounds(90, 190, 150, 30);
l9 = new JLabel("Contact No:");
l9.setBounds(250, 190, 130, 30);
t8 = new JTextField(50);
t8.setBounds(350, 190, 160, 30);
l10 = new JLabel("Date of Birth:");
l10.setBounds(550, 190, 130, 30);
t9 = new JTextField(50);
t9.setBounds(630, 190, 150, 30);
l11 = new JLabel("Father Name:");
l11.setBounds(20, 250, 130, 30);
t10 = new JTextField(50);
t10.setBounds(100, 250, 250, 30);
l12 = new JLabel("Mother Name:");
l12.setBounds(430, 250, 130, 30);
t11 = new JTextField(50);
t11.setBounds(530, 250, 250, 30);
l13 = new JLabel("Permanent Address:");
l13.setBounds(20, 310, 130, 30);
t12 = new JTextField(50);
t12.setBounds(140, 310, 230, 30);
l14 = new JLabel("Temporary Address:");
l14.setBounds(400, 310, 130, 30);
t13 = new JTextField(50);
t13.setBounds(530, 310, 250, 30);
attach = new JButton("Attach Image");
attach.setBounds(910, 300, 150, 40);
p3.add(attach);
attached = new JLabel("Attach Image Here");
attached.setBounds(900, 70, 200, 200);
attached.setFont(new Font(label.getName(), Font.BOLD, 20));
attached.setForeground(Color.BLACK);
p3.add(attached);
attach.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent ae) {
JFileChooser file = new JFileChooser();
file.setCurrentDirectory(new File(System.getProperty("user.home")));
FileNameExtensionFilter filter = new FileNameExtensionFilter("*.Image", "jpg",
"JPG", "JPEG", "png");
file.addChoosableFileFilter(filter);
int result = file.showSaveDialog(null);
if (result == JFileChooser.APPROVE_OPTION) {
File selectedFile = file.getSelectedFile();
String path = selectedFile.getAbsolutePath();
attached.setIcon(ResizeImage(path));
s = path;
} else if (result == JFileChooser.CANCEL_OPTION) {
JOptionPane.showMessageDialog(null, "file not selected");
}
}
});
p1.add(l1);
p3.add(l2);
p3.add(t1);
p3.add(l3);
p3.add(t2);
p3.add(l4);
p3.add(t3);
p3.add(l5);
p3.add(t4);
p3.add(l6);
p3.add(t5);
p3.add(l7);
p3.add(t6);
p3.add(l8);
p3.add(t7);
p3.add(l9);
p3.add(t8);
p3.add(l10);
p3.add(t9);
p3.add(l11);
p3.add(t10);
p3.add(l12);
p3.add(t11);
p3.add(l13);
p3.add(t12);
p3.add(l14);
p3.add(t13);
c.add(p1);
c.add(p2);
c.add(p3);
c.add(p4);
c.add(p5);
setSize(1200, 750);
setLocationRelativeTo(null);
setResizable(false);
setVisible(true);
setTitle("Student Information System Adminstrator Panel");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
shows();
logout();
save();
}
public ImageIcon ResizeImage(String Imagepath) {
ImageIcon myImage = new ImageIcon(Imagepath);
Image img = myImage.getImage();
Image newImage = img.getScaledInstance(attached.getWidth(), attached.getHeight(),
Image.SCALE_SMOOTH);
ImageIcon Image = new ImageIcon(newImage);
return Image;
}
//end image chose
public void logout() {
logout.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
StudentInformationSystem r = new StudentInformationSystem();
r.setVisible(true);
dispose();
}
});
}
public void shows() {
show.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
AdminView ad = new AdminView();
ad.setVisible(true);
dispose();
}
});
}
public void save() {
save.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Connection conn = null;
Statement stmt = null;
String s1 = t1.getText();
String s2 = t2.getText();
String s3 = t3.getText();
String s4 = t4.getText();
String s5 = t5.getText();
String s6 = t6.getText();
String s7 = t7.getText();
String s8 = t8.getText();
String s9 = t9.getText();
String s10 = t10.getText();
String s11 = t11.getText();
String s12 = t12.getText();
String s13 = t13.getText();
String s14 = t14.getText();
String s15 = t15.getText();
String s16 = t16.getText();
String s17 = t17.getText();
String s18 = t18.getText();
String s19 = t19.getText();
String s20 = t20.getText();
String s21 = t21.getText();
Frame: AdminIndividual.java
Code for AdminIndividual:
package studentinformationsystem;
import net.proteanit.sql.DbUtils;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import javax.imageio.ImageIO;
import javax.swing.*;
public class AdminIndividual extends javax.swing.JFrame {
Connection conn = null;
ResultSet rs = null;
PreparedStatement pst = null;
public AdminIndividual() {
initComponents();
conn = dbconnect.java_db();
Toolkit toolkit = getToolkit();
Dimension size = toolkit.getScreenSize();
setLocation(size.width / 2 - getWidth() / 2,
size.height / 2 - getHeight() / 2);
setResizable(false);
setTitle("Student Information System");
}
private void initComponents() {
jButton1 = new javax.swing.JButton();
jPanel1 = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
jTextField1 = new javax.swing.JTextField();
jButton2 = new javax.swing.JButton();
jButton3 = new javax.swing.JButton();
jButton4 = new javax.swing.JButton();
jButton5 = new javax.swing.JButton();
jButton7 = new javax.swing.JButton();
jPanel2 = new javax.swing.JPanel();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jTextField2 = new javax.swing.JTextField();
jTextField3 = new javax.swing.JTextField();
jLabel4 = new javax.swing.JLabel();
jTextField4 = new javax.swing.JTextField();
jLabel5 = new javax.swing.JLabel();
jTextField5 = new javax.swing.JTextField();
jButton6 = new javax.swing.JButton();
jTextField6 = new javax.swing.JTextField();
jLabel7 = new javax.swing.JLabel();
jLabel8 = new javax.swing.JLabel();
jTextField7 = new javax.swing.JTextField();
jLabel9 = new javax.swing.JLabel();
jTextField8 = new javax.swing.JTextField();
jLabel10 = new javax.swing.JLabel();
jTextField9 = new javax.swing.JTextField();
jLabel11 = new javax.swing.JLabel();
jTextField10 = new javax.swing.JTextField();
jLabel12 = new javax.swing.JLabel();
jTextField11 = new javax.swing.JTextField();
jLabel13 = new javax.swing.JLabel();
jTextField12 = new javax.swing.JTextField();
jLabel14 = new javax.swing.JLabel();
jTextField13 = new javax.swing.JTextField();
jLabel15 = new javax.swing.JLabel();
jTextField14 = new javax.swing.JTextField();
jLabel16 = new javax.swing.JLabel();
jLabel17 = new javax.swing.JLabel();
jLabel18 = new javax.swing.JLabel();
jLabel19 = new javax.swing.JLabel();
jLabel20 = new javax.swing.JLabel();
jTextField15 = new javax.swing.JTextField();
jTextField16 = new javax.swing.JTextField();
jTextField17 = new javax.swing.JTextField();
jTextField18 = new javax.swing.JTextField();
jTextField19 = new javax.swing.JTextField();
jTextField20 = new javax.swing.JTextField();
jTextField21 = new javax.swing.JTextField();
jTextField22 = new javax.swing.JTextField();
jLabel6 = new javax.swing.JLabel();
lbl_img = new javax.swing.JLabel();
lbl_img1 = new javax.swing.JLabel();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
jButton1.setBackground(new java.awt.Color(0, 51, 153));
jButton1.setIcon(new
javax.swing.ImageIcon(getClass().getResource("/studentinformationsystem/header.jpg"))); //
NOI18N
jPanel1.setBackground(new java.awt.Color(0, 102, 255));
jLabel1.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
jLabel1.setText("Search Student By ID");
jTextField1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jTextField1ActionPerformed(evt);
}
});
jTextField1.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyReleased(java.awt.event.KeyEvent evt) {
jTextField1KeyReleased(evt);
}
});
jButton2.setIcon(new
javax.swing.ImageIcon(getClass().getResource("/studentinformationsystem/logout.png"))); //
NOI18N
jButton2.setText("Logged Out");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});
jButton3.setIcon(new
javax.swing.ImageIcon(getClass().getResource("/studentinformationsystem/update
icon.png")));
jButton3.setText("Update");
jButton3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton3ActionPerformed(evt);
}
});
jButton4.setIcon(new
javax.swing.ImageIcon(getClass().getResource("/studentinformationsystem/
delete_16x16.gif")));
jButton4.setText("Delete");
jButton4.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton4ActionPerformed(evt);
}
});
jButton5.setIcon(new
javax.swing.ImageIcon(getClass().getResource("/studentinformationsystem/erase-
128.png")));
jButton5.setText("Reset");
jButton5.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton5ActionPerformed(evt);
}
});
jButton7.setIcon(new
javax.swing.ImageIcon(getClass().getResource("/studentinformationsystem/back.png"))); //
NOI18N
jButton7.setText("Back");
jButton7.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton7ActionPerformed(evt);
}
});
jPanel2.setBackground(new java.awt.Color(153, 255, 204));
jLabel2.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
jLabel2.setText("Form NO.");
jLabel3.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
jLabel3.setText("First Name");
jTextField2.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
jTextField2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jTextField2ActionPerformed(evt);
}
});
jTextField3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
jLabel4.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
jLabel4.setText("Batch (Year)");
jTextField4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
jLabel5.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
jLabel5.setText("Student IID");
jTextField5.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
jButton6.setText(" Images");
jButton6.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton6ActionPerformed(evt);
}
});
jTextField6.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
jLabel7.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
jLabel7.setText("Middle Name");
jLabel8.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
jLabel8.setText("Last Name");
jTextField7.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
jLabel9.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
jLabel9.setText("Email");
jTextField8.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
jLabel10.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
jLabel10.setText("Contact no");
jTextField9.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
JOptionPane.showMessageDialog(null, e);
} finally {
try {
rs.close();
pst.close();
} catch (Exception e) {
}
}
}
}
}//GEN-LAST:event_jButton4ActionPerformed
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-
FIRST:event_jButton3ActionPerformed
// TODO add your handling code here:
if (jTextField1.getText().equals("")) {
JOptionPane.showMessageDialog(null, "Record is Not Selected");
}else{
int p = JOptionPane.showConfirmDialog(null, "Are you sure you want to
update?","Update Record",JOptionPane.YES_NO_OPTION);
if(p==0){
try{
String value0 = jTextField1.getText();
String value1 = jTextField2.getText();
String value2 = jTextField3.getText();
String value3 = jTextField4.getText();
String value4 = jTextField5.getText();
String value5 = jTextField6.getText();
String value6 = jTextField7.getText();
String value7 = jTextField8.getText();
String value8 = jTextField9.getText();
String value9 = jTextField10.getText();
String value10 = jTextField11.getText();
String value11 = jTextField12.getText();
String value12 = jTextField13.getText();
String value13 = jTextField14.getText();
String value14 = jTextField15.getText();
String value15 = jTextField17.getText();
String value16 = jTextField19.getText();
String value17 = jTextField21.getText();
String value18 = jTextField16.getText();
String value19 = jTextField18.getText();
String value20 = jTextField20.getText();
String value21 = jTextField22.getText();
String sql= "update information set form_id='"+value1+"',batch_no='"+value3+"',
student_id='"+value4+"', "
+
"first_name='"+value2+"',middle_name='"+value5+"',last_name='"+value6+"',email='"+valu
e7+"',contact= '"+value8+"', "
+ "dob='"+value9+"',father_name
='"+value10+"',mother_name='"+value11+"',permanent_add='"+value12+"',temporary_add='
"+value13+"',particular_school='"+value14+"',"
+
"name_of_school='"+value15+"',percentage_school='"+value16+"',passed_year_school='"+v
alue17+"',"
+
"name_of_higherschool='"+value19+"',percentage_higherschool='"+value20+"',passed_year_
higherschool='"+value21+"',particular_higherschool='"+value18+"'"
// + "image=?"
+ "where student_id='"+value0+"' ";
pst=conn.prepareStatement(sql);
// pst.setBytes(1,person_image);
pst.execute();
JOptionPane.showMessageDialog(null, "RecordSuccessfully Updated");
}catch(Exception e){
JOptionPane.showMessageDialog(null, e);
}
finally {
try{
rs.close();
pst.close();
}
catch(Exception e){
}
}
}
}
}//GEN-LAST:event_jButton3ActionPerformed
Frame: AdminView.java
package studentinformationsystem;
import javax.swing.JOptionPane;
import java.awt.*;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.Calendar;
import java.util.GregorianCalendar;
import javax.swing.*;
import net.proteanit.sql.DbUtils;
pst = conn.prepareStatement(sql);
rs = pst.executeQuery();
jTable1.setModel(DbUtils.resultSetToTableModel(rs));
} catch (Exception e) {
JOptionPane.showMessageDialog(null, e);
} finally {
try {
rs.close();
pst.close();
} catch (Exception e) {
}
}
}
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated
Code">//GEN-BEGIN:initComponents
private void initComponents() {
panel1Layout.setHorizontalGroup( panel1Layout.create
ParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jButton4,
javax.swing.GroupLayout.PREFERRED_SIZE, 1212,
javax.swing.GroupLayout.PREFERRED_SIZE)
);
panel1Layout.setVerticalGroup( panel1Layout.createP
arallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILI
NG, panel1Layout.createSequentialGroup()
.addComponent(jButton4)
.addGap(0, 0, Short.MAX_VALUE))
);
jLabel1.setFont(new java.awt.Font("Tahoma", 1,
14)); // NOI18N
jLabel1.setText("Search Student ByID");
jTextField1.addActionListener(new
java.awt.event.ActionListener() {
public void
actionPerformed(java.awt.event.ActionEvent evt) {
jTextField1ActionPerformed(evt);
}
});
jTextField1.addKeyListener(new
java.awt.event.KeyAdapter() {
public void keyReleased(java.awt.event.KeyEvent
evt) {
jTextField1KeyReleased(evt);
}
});
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(51, 51, 51)
.addComponent(jLabel1,
javax.swing.GroupLayout.PREFERRED_SIZE, 159,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.Compo
nentPlacement.UNRELATED)
.addComponent(jTextField1,
javax.swing.GroupLayout.PREFERRED_SIZE, 379,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.Compo
nentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
.addComponent(jButton3)
.addGap(27, 27, 27)
.addComponent(jButton2)
.addGap(18, 18, 18)
.addComponent(jButton1,
javax.swing.GroupLayout.PREFERRED_SIZE, 89,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(53, 53, 53))
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel1Layout.createParallelGroup(ja
vax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGr
oup()
.addGap(2, 2, 2)
.addComponent(jButton2,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGroup(jPanel1Layout.createParallelGrou
p(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel1,
javax.swing.GroupLayout.PREFERRED_SIZE, 36,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField1,
javax.swing.GroupLayout.PREFERRED_SIZE, 36,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(javax.swing.GroupLayout.Alignmen
t.TRAILING, jPanel1Layout.createSequentialGroup()
.addGap(0, 0, Short.MAX_VALUE)
.addComponent(jButton3))
.addComponent(jButton1,
javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addContainerGap())
);
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.LEADING)
.addComponent(jScrollPane1)
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.LEADING)
.addComponent(jScrollPane1,
javax.swing.GroupLayout.DEFAULT_SIZE, 483, Short.MAX_VALUE)
);
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.L
EADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swi
ng.GroupLayout.Alignment.LEADING, false)
.addComponent(panel1,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jPanel1,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jPanel2,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(6, 6, 6))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.L
EADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILI
NG, layout.createSequentialGroup()
.addComponent(panel1,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.Compo
nentPlacement.RELATED)
.addComponent(jPanel1,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(jPanel2,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
);
pack();
}// </editor-fold>//GEN-END:initComponents
private void
jButton4ActionPerformed(java.awt.event.ActionEvent evt) {
}//GEN-LAST:event_jButton4ActionPerformed
private void
jButton3ActionPerformed(java.awt.event.ActionEvent evt)
dispose();
}//GEN-LAST:event_jButton3ActionPerformed
private void
jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
new AdminFrame();
dispose();
}//GEN-LAST:event_jButton1ActionPerformed
private void
jTextField1ActionPerformed(java.awt.event.ActionEvent evt) {
}//GEN-LAST:event_jTextField1ActionPerformed
private void
jTextField1KeyReleased(java.awt.event.KeyEvent evt)
{ try{
jTable1.setModel(DbUtils.resultSetToTableModel(rs));
}catch(Exception e){
JOptionPane.showMessageDialog(null, e);
}
finally {
try{
rs.close();
pst.close();
}
catch(Exception e){
}
}
}//GEN-LAST:event_jTextField1KeyReleased
private void
jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
Update_table3();
jTextField1.setText("");
}//GEN-LAST:event_jButton2ActionPerforme
public static void main(String args[]) {
try {
for (javax.swing.UIManager.LookAndFeelInfo info :
javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException ex) {
java.util.logging.Logger.getLogger(AdminView.class.getName()).
log(java.util.logging.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(AdminView.class.getName()).
log(java.util.logging.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(AdminView.class.getName()).
log(java.util.logging.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException
ex) {
java.util.logging.Logger.getLogger(AdminView.class.getName()).
log(java.util.logging.Level.SEVERE, null, ex);
}
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new AdminView().setVisible(true);
}
});
}
// Variables declaration - do not modify//GEN-
BEGIN:variables
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JButton jButton3;
private javax.swing.JButton jButton4;
private javax.swing.JLabel jLabel1;
private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
private javax.swing.JScrollPane jScrollPane1;
private javax.swing.JTable jTable1;
private javax.swing.JTextField jTextField1;
private java.awt.Label label1;
private java.awt.Label label2;
private java.awt.Panel panel1;
// End of variables declaration//GEN-END:variables
}
Frame: UserIndividual.java
Code for UserIndividual:
package studentinformationsystem;
import net.proteanit.sql.DbUtils;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import javax.imageio.ImageIO;
import javax.swing.*;
public class UserIndividual extends javax.swing.JFrame {
Connection conn = null;
ResultSet rs = null;
PreparedStatement pst = null;
public UserIndividual() {
initComponents();
conn = dbconnect.java_db();
Toolkit toolkit = getToolkit();
Dimension size = toolkit.getScreenSize();
setLocation(size.width / 2 - getWidth() / 2,
size.height / 2 - getHeight() / 2);
setResizable(false);
setTitle("Student Information System");
}
@SuppressWarnings("unchecked")
GEN-BEGIN:initComponents
private void initComponents() {
jPanel1 = new javax.swing.JPanel();
jButton4 = new javax.swing.JButton();
jPanel2 = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
jTextField1 = new javax.swing.JTextField();
jButton1 = new javax.swing.JButton();
jButton2 = new javax.swing.JButton();
jButton3 = new javax.swing.JButton();
jPanel3 = new javax.swing.JPanel();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jTextField2 = new javax.swing.JTextField();
jLabel4 = new javax.swing.JLabel();
jTextField3 = new javax.swing.JTextField();
jLabel5 = new javax.swing.JLabel();
jTextField4 = new javax.swing.JTextField();
jTextField5 = new javax.swing.JTextField();
jLabel7 = new javax.swing.JLabel();
jLabel6 = new javax.swing.JLabel();
jTextField6 = new javax.swing.JTextField();
jLabel8 = new javax.swing.JLabel();
jTextField7 = new javax.swing.JTextField();
jLabel9 = new javax.swing.JLabel();
jTextField8 = new javax.swing.JTextField();
jLabel10 = new javax.swing.JLabel();
jTextField9 = new javax.swing.JTextField();
jLabel11 = new javax.swing.JLabel();
jTextField10 = new javax.swing.JTextField();
jLabel12 = new javax.swing.JLabel();
jTextField11 = new javax.swing.JTextField();
jLabel13 = new javax.swing.JLabel();
jTextField12 = new javax.swing.JTextField();
jLabel14 = new javax.swing.JLabel();
jLabel15 = new javax.swing.JLabel();
jTextField13 = new javax.swing.JTextField();
jTextField14 = new javax.swing.JTextField();
jLabel16 = new javax.swing.JLabel();
jLabel17 = new javax.swing.JLabel();
lbl_img1 = new javax.swing.JLabel();
jLabel19 = new javax.swing.JLabel();
jLabel20 = new javax.swing.JLabel();
jTextField15 = new javax.swing.JTextField();
jTextField16 = new javax.swing.JTextField();
jTextField17 = new javax.swing.JTextField();
jTextField18 = new javax.swing.JTextField();
jLabel21 = new javax.swing.JLabel();
jTextField19 = new javax.swing.JTextField();
jTextField20 = new javax.swing.JTextField();
jTextField21 = new javax.swing.JTextField();
jTextField22 = new javax.swing.JTextField();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_C
LOSE);
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.LEADING)
.addComponent(jButton4,
javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.LEADING)
.addComponent(jButton4)
);
jLabel1.setFont(new java.awt.Font("Tahoma", 1,
12)); // NOI18N
jLabel1.setText("Search Student By ID");
jTextField1.addActionListener(new
java.awt.event.ActionListener() {
public void
actionPerformed(java.awt.event.ActionEvent evt) {
jTextField1ActionPerformed(evt);
}
});
jTextField1.addKeyListener(new
java.awt.event.KeyAdapter() {
public void keyReleased(java.awt.event.KeyEvent
evt) {
jTextField1KeyReleased(evt);
}
});
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(77, 77, 77)
.addComponent(jLabel1,
javax.swing.GroupLayout.PREFERRED_SIZE, 157,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.Compo
nentPlacement.RELATED)
.addComponent(jTextField1,
javax.swing.GroupLayout.PREFERRED_SIZE, 387,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(158, 158, 158)
.addComponent(jButton3,
javax.swing.GroupLayout.PREFERRED_SIZE, 117,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(jButton2,
javax.swing.GroupLayout.PREFERRED_SIZE, 98,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(jButton1,
javax.swing.GroupLayout.DEFAULT_SIZE, 137, Short.MAX_VALUE)
.addContainerGap())
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.LEADING)
.addGroup(jPanel2Layout.createParallelGroup(javax.
swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel1,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jTextField1,
javax.swing.GroupLayout.PREFERRED_SIZE, 40,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton1,
javax.swing.GroupLayout.PREFERRED_SIZE, 40,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton2,
javax.swing.GroupLayout.PREFERRED_SIZE, 41,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton3,
javax.swing.GroupLayout.PREFERRED_SIZE, 41,
javax.swing.GroupLayout.PREFERRED_SIZE))
);
jLabel2.setFont(new java.awt.Font("Tahoma", 1,
18)); // NOI18N
jLabel2.setForeground(new java.awt.Color(51, 51,
255));
jLabel2.setText("Student Details Information");
jLabel3.setFont(new java.awt.Font("Tahoma", 1,
12)); // NOI18N
jLabel3.setText("First name");
jTextField2.setFont(new java.awt.Font("Tahoma", 1,
12));
jLabel4.setFont(new java.awt.Font("Tahoma", 1,
12)); // NOI18N
jLabel4.setText("Batch (Year)");
jTextField3.setFont(new java.awt.Font("Tahoma", 1,
12));
jLabel5.setFont(new java.awt.Font("Tahoma", 1,
12)); // NOI18N
jLabel5.setText("Student ID");
jTextField4.setFont(new java.awt.Font("Tahoma", 1,
12)); jTextField5.setFont(new java.awt.Font("Tahoma",
1, 12)); // NOI18N
jLabel7.setFont(new java.awt.Font("Tahoma", 1,
12)); // NOI18N
jLabel7.setText("Form no.");
jLabel6.setFont(new java.awt.Font("Tahoma", 1,
12)); // NOI18N
jLabel6.setText("Middle Name");
jTextField6.setFont(new java.awt.Font("Tahoma", 1,
12));
jLabel8.setFont(new java.awt.Font("Tahoma", 1,
12)); // NOI18N
jLabel8.setText("Last Name");
jTextField7.setFont(new java.awt.Font("Tahoma", 1,
12));
jLabel9.setFont(new java.awt.Font("Tahoma", 1,
12)); // NOI18N
jLabel9.setText("Email");
jTextField8.setFont(new java.awt.Font("Tahoma", 1,
12));
jTextField8.addActionListener(new
java.awt.event.ActionListener() {
public void
actionPerformed(java.awt.event.ActionEvent evt) {
jTextField8ActionPerformed(evt);
}
});
jTextField9.setFont(new java.awt.Font("Tahoma", 1,
12));
jTextField10.setFont(new java.awt.Font("Tahoma", 1,
12)); jTextField10.setText("Year/month/day");
jTextField11.setFont(new java.awt.Font("Tahoma", 1,
12));
jTextField12.setFont(new java.awt.Font("Tahoma", 1,
12));
jLabel14.setFont(new java.awt.Font("Tahoma", 1, 12));
jLabel14.setText("Temporary Address");
jTextField15.setFont(new java.awt.Font("Tahoma", 1,
12));
jTextField16.setFont(new java.awt.Font("Tahoma", 1,
12));
jTextField17.setFont(new java.awt.Font("Tahoma", 1,
12));
jTextField18.setFont(new java.awt.Font("Tahoma", 1,
12));
jLabel21.setFont(new java.awt.Font("Tahoma", 1, 14));
jLabel21.setText("Percentage %");
jTextField19.setFont(new java.awt.Font("Tahoma", 1,
12));
jTextField20.setFont(new java.awt.Font("Tahoma", 1,
12));
jTextField21.setFont(new java.awt.Font("Tahoma", 1,
12));
jTextField22.setFont(new java.awt.Font("Tahoma", 1,
12));
javax.swing.GroupLayout jPanel3Layout = new
javax.swing.GroupLayout(jPanel3);
jPanel3.setLayout(jPanel3Layout);
jPanel3Layout.setHorizontalGroup(
jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.LEADING)
.addGroup(jPanel3Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel3Layout.createParallelGroup(ja
vax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createSequentialGr
oup()
.addGroup(jPanel3Layout.createParallel
Group(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(javax.swing.GroupLayout.
Alignment.LEADING, jPanel3Layout.createSequentialGroup()
.addGroup(jPanel3Layout.create
ParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addGroup(jPanel3Layout.cr
eateSequentialGroup()
.addGroup(jPanel3Layou
t.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADIN
G)
.addGroup(jPanel3L
ayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TR
AILING, false)
.addGroup(java
x.swing.GroupLayout.Alignment.LEADING,
jPanel3Layout.createSequentialGroup()
.addCompon
ent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 73,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPrefer
redGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addCompon
ent(jTextField5))
.addGroup(java
x.swing.GroupLayout.Alignment.LEADING,
jPanel3Layout.createSequentialGroup()
.addGap(6,
6, 6)
.addCompon
ent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 73,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPrefer
redGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addCompon
ent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 125,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(jPanel3L
ayout.createSequentialGroup()
.addComponent(
jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 73,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredG
ap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(
jTextField8, javax.swing.GroupLayout.PREFERRED_SIZE, 142,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(18, 18, 18)
.addGroup(jPanel3Layou
t.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILI
NG)
.addGroup(jPanel3L
ayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LE
ADING, false)
.addGroup(jPan
el3Layout.createSequentialGroup()
.addCompon
ent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 83,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPrefer
redGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addCompon
ent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 148,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPan
el3Layout.createSequentialGroup()
.addCompon
ent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 81,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPrefer
redGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addCompon
ent(jTextField6)))
.addGroup(jPanel3L
ayout.createSequentialGroup()
.addComponent(
jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 80,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredG
ap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(
jTextField9, javax.swing.GroupLayout.PREFERRED_SIZE, 149,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(65, 65, 65))
.addGroup(javax.swing.Grou
pLayout.Alignment.TRAILING,
jPanel3Layout.createSequentialGroup()
.addGroup(jPanel3Layou
t.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILI
NG)
.addGroup(jPanel3L
ayout.createSequentialGroup()
.addComponent(
jLabel15)
.addPreferredG
ap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(
jLabel14))
.addGroup(jPanel3L
ayout.createSequentialGroup()
.addComponent(
jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 96,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredG
ap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(
jTextField14, javax.swing.GroupLayout.PREFERRED_SIZE, 217,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredG
ap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(
jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 103,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addPreferredGap(javax
.swing.LayoutStyle.ComponentPlacement.RELATED)))
.addGroup(jPanel3Layout.create
ParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.cr
eateParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layou
t.createSequentialGroup()
.addGroup(jPanel3L
ayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LE
ADING)
.addComponent(
jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 71,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(
jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 79,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(
jLabel11))
.addGap(37, 37,
37)
.addGroup(jPanel3L
ayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LE
ADING)
.addComponent(
jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, 219,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(
jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, 219,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(
jTextField10, javax.swing.GroupLayout.PREFERRED_SIZE, 219,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addComponent(jTextFie
ld12, javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout.PREFERRED_SIZE, 275,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel3Layout.cr
eateSequentialGroup()
.addGap(62, 62, 62)
.addComponent(jTextFie
ld13, javax.swing.GroupLayout.PREFERRED_SIZE, 279,
javax.swing.GroupLayout.PREFERRED_SIZE))))
.addComponent(jLabel2,
javax.swing.GroupLayout.Alignment.LEADING,
javax.swing.GroupLayout.PREFERRED_SIZE, 286,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(javax.swing.GroupLayout.
Alignment.LEADING, jPanel3Layout.createSequentialGroup()
.addGap(142, 142, 142)
.addComponent(jTextField11,
javax.swing.GroupLayout.PREFERRED_SIZE, 245,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(javax.swing.GroupLayout.
Alignment.LEADING, jPanel3Layout.createSequentialGroup()
.addGroup(jPanel3Layout.create
ParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.cr
eateSequentialGroup()
.addGroup(jPanel3Layou
t.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADIN
G)
.addComponent(jTex
tField22, javax.swing.GroupLayout.PREFERRED_SIZE, 233,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLab
el16, javax.swing.GroupLayout.PREFERRED_SIZE, 96,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(101, 101, 101)
.addGroup(jPanel3Layou
t.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADIN
G)
.addComponent(jTex
tField15, javax.swing.GroupLayout.PREFERRED_SIZE, 233,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTex
tField19, javax.swing.GroupLayout.PREFERRED_SIZE, 233,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLab
el20)))
.addComponent(jTextField18
, javax.swing.GroupLayout.PREFERRED_SIZE, 233,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(61, 61, 61)
.addGroup(jPanel3Layout.create
ParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jTextField16
, javax.swing.GroupLayout.PREFERRED_SIZE, 233,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField20
, javax.swing.GroupLayout.PREFERRED_SIZE, 233,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel21,
javax.swing.GroupLayout.PREFERRED_SIZE, 127,
javax.swing.GroupLayout.PREFERRED_SIZE))))
.addPreferredGap(javax.swing.LayoutSty
le.ComponentPlacement.RELATED, 15, Short.MAX_VALUE)
.addGroup(jPanel3Layout.createParallel
Group(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.
Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
.addGroup(jPanel3Layout.create
ParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jTextField17
, javax.swing.GroupLayout.PREFERRED_SIZE, 233,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel19,
javax.swing.GroupLayout.PREFERRED_SIZE, 131,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(33, 33, 33))
.addGroup(javax.swing.GroupLayout.
Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
.addComponent(lbl_img1,
javax.swing.GroupLayout.PREFERRED_SIZE, 195,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(25, 25, 25))
.addGroup(jPanel3Layout.createSequ
entialGroup()
.addComponent(jTextField21,
javax.swing.GroupLayout.PREFERRED_SIZE, 233,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap())))
.addGroup(jPanel3Layout.createSequentialGr
oup()
.addComponent(jLabel17,
javax.swing.GroupLayout.PREFERRED_SIZE, 196,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayo
ut.DEFAULT_SIZE, Short.MAX_VALUE))))
);
jPanel3Layout.setVerticalGroup(
jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.LEADING)
.addGroup(jPanel3Layout.createSequentialGroup()
.addComponent(jLabel2,
javax.swing.GroupLayout.PREFERRED_SIZE, 34,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(jPanel3Layout.createParallelGroup(ja
vax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel4,
javax.swing.GroupLayout.PREFERRED_SIZE, 27,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(jPanel3Layout.createParallelGrou
p(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jTextField2,
javax.swing.GroupLayout.PREFERRED_SIZE, 40,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel7,
javax.swing.GroupLayout.PREFERRED_SIZE, 26,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(javax.swing.GroupLayout.Alignmen
t.TRAILING,
jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.BASELINE)
.addComponent(jTextField4,
javax.swing.GroupLayout.PREFERRED_SIZE, 40,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel5,
javax.swing.GroupLayout.PREFERRED_SIZE, 28,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(jTextField3,
javax.swing.GroupLayout.PREFERRED_SIZE, 40,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel3Layout.createParallelGroup(ja
vax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createSequentialGr
oup()
.addPreferredGap(javax.swing.LayoutSty
le.ComponentPlacement.UNRELATED)
.addGroup(jPanel3Layout.createParallel
Group(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel3,
javax.swing.GroupLayout.PREFERRED_SIZE, 26,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField5,
javax.swing.GroupLayout.PREFERRED_SIZE, 38,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel6,
javax.swing.GroupLayout.PREFERRED_SIZE, 38,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField6,
javax.swing.GroupLayout.PREFERRED_SIZE, 38,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel8,
javax.swing.GroupLayout.PREFERRED_SIZE, 38,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField7,
javax.swing.GroupLayout.PREFERRED_SIZE, 38,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(22, 22, 22)
.addGroup(jPanel3Layout.createParallel
Group(javax.swing.GroupLayout.Alignment.LEADING, false)
.addGroup(jPanel3Layout.createPara
llelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel10,
javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout.PREFERRED_SIZE, 40,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(jPanel3Layout.create
ParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jTextField9,
javax.swing.GroupLayout.PREFERRED_SIZE, 40,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel11)
.addComponent(jTextField10
, javax.swing.GroupLayout.PREFERRED_SIZE, 40,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addComponent(jLabel9,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jTextField8))
.addGap(18, 18, 18)
.addGroup(jPanel3Layout.createParallel
Group(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createPara
llelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel12,
javax.swing.GroupLayout.PREFERRED_SIZE, 34,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField14,
javax.swing.GroupLayout.PREFERRED_SIZE, 34,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel3Layout.createPara
llelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel13,
javax.swing.GroupLayout.PREFERRED_SIZE, 43,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField12,
javax.swing.GroupLayout.PREFERRED_SIZE, 34,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addPreferredGap(javax.swing.LayoutSty
le.ComponentPlacement.UNRELATED)
.addGroup(jPanel3Layout.createParallel
Group(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jTextField11,
javax.swing.GroupLayout.PREFERRED_SIZE, 34,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(jPanel3Layout.createPara
llelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jTextField13,
javax.swing.GroupLayout.PREFERRED_SIZE, 37,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel14,
javax.swing.GroupLayout.PREFERRED_SIZE, 34,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(jLabel15,
javax.swing.GroupLayout.PREFERRED_SIZE, 34,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel3Layout.createParallel
Group(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createSequ
entialGroup()
.addGap(15, 15, 15)
.addComponent(jLabel17,
javax.swing.GroupLayout.PREFERRED_SIZE, 34,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.L
ayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jLabel16,
javax.swing.GroupLayout.PREFERRED_SIZE, 34,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.L
ayoutStyle.ComponentPlacement.RELATED))
.addGroup(javax.swing.GroupLayout.
Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
.addGap(11, 11, 11)
.addGroup(jPanel3Layout.create
ParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.Grou
pLayout.Alignment.TRAILING,
jPanel3Layout.createSequentialGroup()
.addComponent(jLabel19
, javax.swing.GroupLayout.PREFERRED_SIZE, 34,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(19, 19, 19))
.addGroup(javax.swing.Grou
pLayout.Alignment.TRAILING,
jPanel3Layout.createSequentialGroup()
.addGroup(jPanel3Layou
t.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELI
NE)
.addComponent(jLab
el20, javax.swing.GroupLayout.PREFERRED_SIZE, 34,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLab
el21, javax.swing.GroupLayout.PREFERRED_SIZE, 34,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax
.swing.LayoutStyle.ComponentPlacement.UNRELATED)))))
.addGroup(jPanel3Layout.createParallel
Group(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jTextField15,
javax.swing.GroupLayout.PREFERRED_SIZE, 43,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField16,
javax.swing.GroupLayout.PREFERRED_SIZE, 43,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField17,
javax.swing.GroupLayout.PREFERRED_SIZE, 43,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField22,
javax.swing.GroupLayout.PREFERRED_SIZE, 43,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(jPanel3Layout.createSequentialGr
oup()
.addGap(21, 21, 21)
.addComponent(lbl_img1,
javax.swing.GroupLayout.PREFERRED_SIZE, 176,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(18, 18, 18)
.addGroup(jPanel3Layout.createParallelGroup(ja
vax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jTextField18,
javax.swing.GroupLayout.PREFERRED_SIZE, 43,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField19,
javax.swing.GroupLayout.PREFERRED_SIZE, 43,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField20,
javax.swing.GroupLayout.PREFERRED_SIZE, 43,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField21,
javax.swing.GroupLayout.PREFERRED_SIZE, 43,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap(62, Short.MAX_VALUE))
);
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.L
EADING)
.addGroup(layout.createSequentialGroup()
.addComponent(jPanel1,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.Compo
nentPlacement.RELATED)
.addComponent(jPanel2,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.Compo
nentPlacement.RELATED)
.addComponent(jPanel3,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
pack();
}// </editor-fold>//GEN-END:initComponents
private void
jTextField1ActionPerformed(java.awt.event.ActionEvent evt)
{//GEN-FIRST:event_jTextField1ActionPerformed
}//GEN-LAST:event_jTextField1ActionPerformed
private void
jButton2ActionPerformed(java.awt.event.ActionEvent evt)
{//GEN-FIRST:event_jButton2ActionPerformed
jTextField1.setText("");
jTextField2.setText("");
jTextField3.setText("");
jTextField4.setText("");
jTextField5.setText("");
jTextField6.setText("");
jTextField7.setText("");
jTextField8.setText("");
jTextField9.setText("");
jTextField10.setText("");
jTextField11.setText("");
jTextField12.setText("");
jTextField13.setText("");
jTextField14.setText("");
jTextField15.setText("");
jTextField16.setText("");
jTextField17.setText("");
jTextField18.setText("");
jTextField19.setText("");
jTextField20.setText("");
jTextField21.setText("");
jTextField22.setText("");
lbl_img1.setIcon(null);
}//GEN-LAST:event_jButton2ActionPerformed
private void
jTextField8ActionPerformed(java.awt.event.ActionEvent evt) {
}//GEN-LAST:event_jTextField8ActionPerformed
private void
jButton3ActionPerformed(java.awt.event.ActionEvent evt)
{//GEN-FIRST:event_jButton3ActionPerformed
new UserView().setVisible(true);
dispose();
}//GEN-LAST:event_jButton3ActionPerformed
private void
jButton1ActionPerformed(java.awt.event.ActionEvent evt)
{//GEN-FIRST:event_jButton1ActionPerformed
new StudentInformationSystem().setVisible(true);
dispose();
}//GEN-LAST:event_jButton1ActionPerformed
private void
jTextField1KeyReleased(java.awt.event.KeyEvent evt) {//GEN-
FIRST:event_jTextField1KeyReleased
ResultSet rs = null;
PreparedStatement pst = null;
} finally {
try {
rs.close();
pst.close();
} catch (Exception e) {
}
}
}//GEN-LAST:event_jTextField1KeyReleased
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new UserIndividual().setVisible(true);
}
});
}
GEN-BEGIN:variables
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
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 jLabel12;
private javax.swing.JLabel jLabel13;
private javax.swing.JLabel jLabel14;
private javax.swing.JLabel jLabel15;
private javax.swing.JLabel jLabel16;
private javax.swing.JLabel jLabel17;
private javax.swing.JLabel jLabel19;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel20;
private javax.swing.JLabel jLabel21;
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.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
private javax.swing.JPanel jPanel3;
private javax.swing.JTextField jTextField1;
private javax.swing.JTextField jTextField10;
private javax.swing.JTextField jTextField11;
private javax.swing.JTextField jTextField12;
private javax.swing.JTextField jTextField13;
private javax.swing.JTextField jTextField14;
private javax.swing.JTextField jTextField15;
private javax.swing.JTextField jTextField16;
private javax.swing.JTextField jTextField17;
private javax.swing.JTextField jTextField18;
private javax.swing.JTextField jTextField19;
private javax.swing.JTextField jTextField2;
private javax.swing.JTextField jTextField20;
private javax.swing.JTextField jTextField21;
private javax.swing.JTextField jTextField22;
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;
private javax.swing.JLabel lbl_img1;
// End of variables declaration//GEN-END:variables
}
Frame: UserView.java
Code forUserView:
package studentinformationsystem;
import javax.swing.JOptionPane;
import java.awt.*;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.Calendar;
import java.util.GregorianCalendar;
import javax.swing.*;
import net.proteanit.sql.DbUtils;
pst = conn.prepareStatement(sql);
rs = pst.executeQuery();
jTable1.setModel(DbUtils.resultSetToTableModel(rs));
} catch (Exception e) {
JOptionPane.showMessageDialog(null, e);
} finally {
try {
rs.close();
pst.close();
} catch (Exception e) {
}
}
}
@SuppressWarnings("unchecked")
GEN-BEGIN:initComponents
private void initComponents() {
jLabel1.setFont(new java.awt.Font("Tahoma", 1,
14)); // NOI18N
jLabel1.setText("Search Student By ID");
jTextField1.addActionListener(new
java.awt.event.ActionListener() {
public void
actionPerformed(java.awt.event.ActionEvent evt) {
jTextField1ActionPerformed(evt);
}
});
jTextField1.addKeyListener(new
java.awt.event.KeyAdapter() {
public void keyReleased(java.awt.event.KeyEvent
evt) {
jTextField1KeyReleased(evt);
}
});
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(69, 69, 69)
.addComponent(jLabel1,
javax.swing.GroupLayout.PREFERRED_SIZE, 162,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.Compo
nentPlacement.RELATED)
.addComponent(jTextField1,
javax.swing.GroupLayout.PREFERRED_SIZE, 385,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.Compo
nentPlacement.RELATED, 129, Short.MAX_VALUE)
.addComponent(jButton2)
.addGap(18, 18, 18)
.addComponent(jButton3)
.addGap(18, 18, 18)
.addComponent(jButton1,
javax.swing.GroupLayout.PREFERRED_SIZE, 128,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap())
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel2Layout.createParallelGroup(ja
vax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel1,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jButton1,
javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout.PREFERRED_SIZE, 39,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton2)
.addComponent(jButton3,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jTextField1))
.addContainerGap())
);
jButton4.setIcon(new
javax.swing.ImageIcon(getClass().getResource("/studentinformat
ionsystem/headeruser.jpg"))); // NOI18N
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.LEADING)
.addComponent(jButton4,
javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.LEADING)
.addComponent(jButton4,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.LEADING)
.addGap(0, 0, Short.MAX_VALUE)
);
jPanel3Layout.setVerticalGroup(
jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.LEADING)
.addGap(0, 0, Short.MAX_VALUE)
);
javax.swing.GroupLayout jPanel4Layout = new
javax.swing.GroupLayout(jPanel4);
jPanel4.setLayout(jPanel4Layout);
jPanel4Layout.setHorizontalGroup(
jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.LEADING)
.addGap(0, 63, Short.MAX_VALUE)
);
jPanel4Layout.setVerticalGroup(
jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.LEADING)
.addGap(0, 812, Short.MAX_VALUE)
);
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.L
EADING)
.addGroup(layout.createSequentialGroup()
.addGap(1122, 1122, 1122)
.addComponent(jPanel3,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.Compo
nentPlacement.RELATED)
.addComponent(jPanel4,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addComponent(jPanel1,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jPanel2,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jScrollPane1)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.L
EADING)
.addGroup(layout.createSequentialGroup()
.addComponent(jPanel1,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.Compo
nentPlacement.RELATED)
.addComponent(jPanel2,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(15, 15, 15)
.addComponent(jScrollPane1,
javax.swing.GroupLayout.PREFERRED_SIZE, 743,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.Compo
nentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
.addComponent(jPanel4,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.Compo
nentPlacement.RELATED)
.addComponent(jPanel3,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGap(823, 823, 823))
);
pack();
}// </editor-fold>//GEN-END:initComponents
private void
jTextField1ActionPerformed(java.awt.event.ActionEvent evt) {
}//GEN-LAST:event_jTextField1ActionPerformed
private void
jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
new StudentInformationSystem();
dispose();
}//GEN-LAST:event_jButton1ActionPerformed
private void
jTextField1KeyReleased(java.awt.event.KeyEvent evt) {
try {
String sql = "select * from information where
student_id = ? ";
pst = conn.prepareStatement(sql);
pst.setString(1, jTextField1.getText());
rs = pst.executeQuery();
jTable1.setModel(DbUtils.resultSetToTableModel(rs));
} catch (Exception e) {
JOptionPane.showMessageDialog(null, e);
} finally {
try {
rs.close();
pst.close();
} catch (Exception e) {
}
}
}
private void
jButton3ActionPerformed(java.awt.event.ActionEvent evt) }
Update_table3();
jTextField1.setText("");
}//GEN-LAST:event_jButton3ActionPerformed
private void
jButton2ActionPerformed(java.awt.event.ActionEvent evt)}
new UserIndividual().setVisible(true);
dispose();
}//GEN-LAST:event_jButton2ActionPerformed
public static void main(String args[]) {
try {
for (javax.swing.UIManager.LookAndFeelInfo info :
javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException ex) {
java.util.logging.Logger.getLogger(UserView.class.getName()).l
og(java.util.logging.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(UserView.class.getName()).l
og(java.util.logging.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(UserView.class.getName()).l
og(java.util.logging.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException
ex) {
java.util.logging.Logger.getLogger(UserView.class.getName()).l
og(java.util.logging.Level.SEVERE, null, ex);
}
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new UserView().setVisible(true);
}
});
}GEN-BEGIN:variables
7. User Manual
7.1 How to installSoftware:
Hardware Requirement-
Intel Pentium/Celeron or similar processor based PC at Client/Server
end.
128 MB RAM and 4GB 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 2000/XP OS is desirable.
NetBeans Ver 5.1 or higher should be installed with JDK and JVM.
MySQL Ver 6.1 with Library Database must be present at machine.
Database Installation
Note: The PC must have MySQL server with user (root) and password
(admin) . If root password is any other password, it can be changed by
running MySQL Server Instance Configure Wizard.
Provide current password of root and new password as “admin” , this will
change the root password.
8.References
In order to work on this project titled -LibSys – Public Library Management
System, the following books and literature are refered by me during the
various phases of development of the project.
(4) http://www.netbeans.org/
(7) http://www.slideshare.net/GS274/student-management-system