0% found this document useful (0 votes)
14 views86 pages

School - MGMT - System NEW VI SEM

The document outlines the development of a School Management System (SMS) aimed at replacing manual record-keeping with a computerized solution. It details the project's objectives, hardware and software requirements, roles and responsibilities, and includes an analysis of the existing system's limitations. The proposed system is designed to enhance efficiency in managing school records, providing modules for login, notices, fee structures, and faculty management.

Uploaded by

Manish Dhanuk
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views86 pages

School - MGMT - System NEW VI SEM

The document outlines the development of a School Management System (SMS) aimed at replacing manual record-keeping with a computerized solution. It details the project's objectives, hardware and software requirements, roles and responsibilities, and includes an analysis of the existing system's limitations. The proposed system is designed to enhance efficiency in managing school records, providing modules for login, notices, fee structures, and faculty management.

Uploaded by

Manish Dhanuk
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 86

INDEX

S.No. TOPIC PAGE No.

1 Title Of The Project

2 Introduction

3 Objectives Of The Project

4 Tools/Hardware & Software

Requirement Specifications

5 Roles and responsibility

6 Analysis

Identification Of Need

Project Category

DFDs

E-R Diagram

Feasibility Study

Data Dictionary

7 Designs

No. Of Modules

Process Logic Of Each

Module

1
8 Input and Output Screens
9 Coding

10 Testing

11 Security For Project

12 Limitations Of Project

13 Future Scope Of The Project

14 Bibliography

2
TITLE OF THE PROJECT

“SCHOOL

MANAGEMENT

SYSTEM”

3
INTRODUCTION

4
INTRODUCTION
Fed up with struggling with a system, which seems to add to your workload,
which doesn't work the way your school does? Do you want a scalable
computerized system with plenty of timesaving features that help to get jobs
done accurately and quickly? Do you want professional-looking reports and
correspondence? .........Then look at School Management System.
The appearance of your student records says a lot about the quality of your
school. Other educators and registrars make judgments based on student records
that can permanently affect a student's life. SMS capabilities include the basics
such as fee structure ,faculty ,notice.
You operate a quality program—NOW you can be sure your records
communicate that quality. Here realizes the need for an effective school
management system and that is exactly what we are striving for!
The School Management System (SMS) will replace the paper-based data
collection and information exchange system among the various departments of a
particular school. The School Management System provides an innovative
solution for Today’s school record-keeping challenges. This school management
software will give you room to handle your responsibilities whether you’re just
starting or are an experienced professional.

5
OBJECTIVES

6
OBJECTIVES
School management is the embodiment of a spirit and of an ideal. School
management should enable different limbs of the school organism ―to function
harmoniously in happy coordination blending themselves into a composite
personality like the different rivulets which join together.

A school should be managed

1. To train his faculties.

2. To widen his outlook.

3. To cultivate his mind.

4. To form and strength his character.

5. To develop and cultivate his aesthetic faculty.

6. To build up his body and give him health and strength.

7. To teach his duty to himself, the community and the state.

7
TOOLS/HARDWARE
& SOFTWARE
REQUIREMENT
SPECIFICATION

8
Hardware Requirements

Processor – Intel core i3 or more


R.A.M – Minimum 2GB
Hard Disk– 500 GB

Software Requirements

Operating System– Windows 7 or more


Front End–Java
Database – Oracle 10g
Back End – SQL Server

9
ROLES AND
RESPONSIBILITY

10
Roles and responsibility

NAME ROLES AND


RESPONSIBILIT
Y
VIKASH KUMAR CODING
AMIT GUPTA DESIGNING
KULDEEP SHARMA ANALYZE

YASH TESTING

11
ANALYSIS

12
IDENTIFICATION OF NEED

INTRODUCTION: Defining a problem clearly is a step stone to its solution. In


case of information system, before designing, it is necessary to understand the
system clearly and concisely as regard to the working of the system and
loopholes of the existing system so as to improve the overall efficiency of the
system.

EXISTING SYSTEM: In the existing management system in different


organizations keep its records in flats files and whole system was handled
manually. Different files were used to keep track of the different kind of
information like Notice,Fee structure,Faculties etc. All processes are handled
manually.

LIMITATION AND DEMERITS OF EXISTING SYSTEM: The existing


system lived of its life. If this ever changing environment everybody or
everything has to change accordingly, to time or else they would be thrown away
from the system. When everything in this world is computerized, to make it more
effective and easy to handle then why not existing system. The existing system is
running, on the flat file therefore records are huge and difficult to handle. An
enquiry about any information is received late. The entire concerned file has to
be opened to give the required information. The main problem in existing manual
system can be summarized as below:

MANUAL SYSTEM: The manual system of data entry and report generation
was very slow and susceptible to human errors leading to loss of valid time and
memory.

NO CHECK ON VALIDATION: The validation check was almost absent and


that led to in presence of data and there were lots of errors in selection.

13
PROPOSED SYSTEM: A computer based management system for monitoring
of different activity like Notice,Fee structure,Faculties in view of user
requirement. The existing system which was manual and keeping the records in
flat files was to be computerized. The proposed system can be divided into
following parts:

LOGIN MODULE :-
This module will maintain the login details.

HOME MODULE :-
This module will handle the details of School.

NOTICE MODULE :-
This module will handle the Notice Board.

FEE STRUCTURE MODULE :-


This will maintain fee details of all classes.

FACULTY MODULE :-
This will maintain the datails of all the faculties.

14
ADVANATGES OF THE PROPOSED SYSTEM: -
The advantages of proposed system can be summarized as below:-

1) The new system will be developed in RDBMS concept making it


compatible with the user requirement. As a result there will be minimum
redundancy of data and large amount of data can be stored in the database
without any storage problem.

2) The response time information retrieval will reduced to negligible and the
processing time require for retrieving, the desired information from
different table is less.

3) Reports can be generated quickly for effective decision making and up- to-
date information is available and answers to queries are also provided
instantly.

REQUIREMENT ANALYSIS: This activity is of heart of system analysis.


Requirement analysis relies on the fact finding techniques such as interview,
questionnaires, record inspection and onsite observation. Requirement definition
involves study of current system to find out how it works and what the areas that
need improvement requirement definition is features that must be included in a
system study. It may include a way of capturing data, processing data, controlling
a business activity or supporting managements. Requirement analysis forms the
core of the system analysis process using a variety of tools and skills the system
and documents its features for further analysis requirement investigation relies
very heavily on fact finding techniques.

In the proposed system the techniques used were interviews, record inspection
and observation interviewing techniques can be used to collect the information
from individuals or from groups. The presence of experienced analyst in fact
finding group is a boon experience from previous studied can help in
investigation of area that would otherwise go unnoticed by an in experienced
analyst. Having the expertise background to know what question to ask or which
aspect of problem to investigation the process of requirement analysis becomes
fruitful.

15
PREELIMINARY INVESTIGATION:

The purpose of preliminary investigation is to evaluate project requests. It is not


a design study nor does it include the collection of details to describe the
business system in all aspects. Rather it is the collection of information that helps
committee members to evaluate the merits of the project request and make an
informed judgment about the feasibility of the proposed project.

Analysts working in the preliminary investigation should accomplish the


following activities:

Clarify and understand the project request.


Determine the size of project.
Assess the cost and benefits of alternative approaches.
Determine the technical and operational feasibility of alternative
approaches.
Report the findings to management, with recommendations outlining the
acceptance or rejection the project.

The data that the analysts collect during preliminary investigations are gathered
through three primary methods: reviewing organization documents, on-site
observations, conducting interviews.
A) CONDUCTING INTERVIEWS: Interviews techniques can be used to
collect the information from the individual or group to find out the problem
of existing system or to extract new ideas thoughts regarding the purposed
system during the development of this system a number of interviews were
conducted know about the company policies.
B) REVIEWING ORGANISATION DOCUMENTS: Existing system
procedure manual illustrate the format and function of various aspects of
existing system.
C) ON SITE OBSERVATION: This information gathering approach gets as
close as possible to real system under study in the natural work
environments vital information regarding the existing was gathered through
this approach.

16
PROJECT
CATEGORY

Relational Database Management


System (RDBMS).

17
DATA FLOW DIAGRAM
Context Flow(0 level) diagram
REPORT

NOTICE

LOGIN
SCHOOL
MANAGEMENT
SYSTEM

FEE DETAIL

FACULTY

18
Level 1 Diagram.
REGISTATION

INVALID

LOGIN LOGIN
ID &PASSWORD LOGIN

PROCE

USER!

PROCESS

NOTICE NOTICE
NOTICE
NOTICE

FEE DETAIL
FEE DETAIL FEE
DETAIL

19
FACULTY FACULTY FACULTY

REPORT REPORT
REPORT

20
ER DAIGRAM

User_id Password
Quality
Policy s

Our

Mission
Administrator

Home course Genera


Manag
te

Faculty
Report
Notice

Id
DOB

Name
About
us Fee Detail
Gender

Total

class

Tuition

Annual
Sports
Exam

21
FEASIBILITY STUDY
An initial investigation culminates in a proposal that determines whether an
alternative system is feasible or not. Proposal summarizing the study of the
system is presented to the user for reviews. When approved this proposal
initiates feasibility study that meets the system performance requirement and
the objectives.

To test the feasibility of this project, following aspects are studied in detail so
that there should not be any resistance from the personnel of the user
organization.

The activities studied are:


Main characteristics of the system.
Output requirement including response time.
Varity of data and estimated volume.
Feasibility study for user and system manager.
Objective and requirement of system.
The key considerations involved in feasibility analysis are:
Technical feasibility
Economic feasibility
Operational feasibility

22
DATA DICTIONORY

TABLE USED

Table Name:- login

FIELD NAME TYPE CONSTRAINTS


USER_ID String Not Null
PASSWORD String Not Null

Table Name:- Home

FIELD NAME TYPE CONSTRAINTS


Item String Not Null
Description String Not Null

23
Table Name:-Fee

FIELD NAME TYPE CONSTRAINTS

Class String Not Null

Exam int Not Null

Tuition Int Not Null

Sports int Not Null

Annual int Not Null

Total Int Not Null

Table Name:Faculty;

FIELD NAME TYPE CONSTRAINTS

Id String Unique

Name String Not Null

DOB Int Not Null

Gender String Not Null

Course String Not Null

24
DESIGNS

25
No. of modules

 LOGIN MODULE

Used for maintaining the login details.

 HOME MODULE

Used to maintain the details like about us,quality policy and our mission.

 NOTICE

Used to maintain the notice board.

 FEE STRUCTURE

Used to maintain the details of fee structure.

 FACULTY

Used to maintain the details faculty.

26
PROCESS LOGIC OF EACH MODULE

LOGIN MODULE :-

The process logic of login module is to perform following tasks:-

 USER AUTHENTICATION.

 USER REGISTRATION.

NOTICE MODULE :-

The process logic of notice module is to perform following tasks:-

 NOTICE

FEE STRUCTURE MODULE :-

The process logic of fee structure module is to perform following tasks:-

 FEE STRUCTURE

FACULTY MODULE :-

The process logic of faculty module is to perform following tasks:-

 FACULTY

27
INPUT AND OUTPUT
SCREENS

28
LOGIN

29
REGISTER

30
HOME

31
 NOTICE

32
 FEE STRUCTURE

33
 FACULTY

34
 HOME PAGE (REPORT)

 NOTICE(REPORT)

35
 FEE STRUCTURE (REPORT)

 FACULTY (REPORT)

36
CODING
LOGIN PAGE
import java.awt.Color;
import java.sql.*;
import javax.swing.JOptionPane;

public class Login extends javax.swing.JFrame {


String sname;
String spass;
Connection con;
Statement st;
ResultSet rs;
public Login() {
initComponents();
try{
//Class.forName("com.mysql.jdbc.Driver");
Class.forName("com.mysql.jdbc.Driver");
con=DriverManager.getConnection("jdbc:mysql://localhost:3306/SMSDB","root","");
st=con.createStatement();
}
catch(ClassNotFoundException | SQLException e) {
System.out.println(e.getMessage());
}
}
/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {
pnlLogin = new javax.swing.JPanel();
lblLogin = new javax.swing.JLabel();
jLabel6 = new javax.swing.JLabel();
txtuser = new javax.swing.JTextField();
jLabel8 = new javax.swing.JLabel();
jPass = new javax.swing.JPasswordField();
jButton3 = new javax.swing.JButton();
jButton4 = new javax.swing.JButton();
lbl = new javax.swing.JLabel();
jLabel1 = new javax.swing.JLabel();
jButton1 = new javax.swing.JButton();
lblPhoto = new javax.swing.JLabel();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setMinimumSize(new java.awt.Dimension(1380, 800));
setPreferredSize(new java.awt.Dimension(1380, 800));
getContentPane().setLayout(null);

37
pnlLogin.setBackground(new java.awt.Color(180, 60,180,60));
lblLogin.setFont(new java.awt.Font("Jokerman", 3, 36)); // NOI18N
lblLogin.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
lblLogin.setText("LOGIN FORM");

jLabel6.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N


jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel6.setText(" User Name :-");
txtuser.setText("Enter username");
txtuser.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
txtuserActionPerformed(evt);
}
});

jLabel8.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N


jLabel8.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel8.setText(" Password :- ");

jPass.setText("jPasswordField1");
jPass.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jPassActionPerformed(evt);
}
});

jButton3.setBackground(new java.awt.Color(51, 51, 255));


jButton3.setFont(new java.awt.Font("Tahoma", 1, 12));
jButton3.setForeground(new java.awt.Color(255, 255, 255));
jButton3.setText("Login");
jButton3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton3ActionPerformed(evt);
}
});
jButton4.setBackground(new java.awt.Color(255, 0, 0));
jButton4.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
jButton4.setForeground(new java.awt.Color(255, 255, 255));
jButton4.setText("Cancel");
jButton4.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton4ActionPerformed(evt);
}
});

jLabel1.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N


jLabel1.setText("New User !");

jButton1.setFont(new java.awt.Font("Traditional Arabic", 1, 24)); // NOI18N


jButton1.setForeground(new java.awt.Color(51, 255, 0));
jButton1.setText("Register");
jButton1.setToolTipText("");

38
jButton1.setBorder(null);
jButton1.setFocusPainted(false);
jButton1.setFocusable(false);
jButton1.setRequestFocusEnabled(false);
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});

javax.swing.GroupLayout pnlLoginLayout = new javax.swing.GroupLayout(pnlLogin);


pnlLogin.setLayout(pnlLoginLayout);
pnlLoginLayout.setHorizontalGroup(
pnlLoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(lblLogin, javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
.addGroup(pnlLoginLayout.createSequentialGroup()
.addGap(50, 50, 50)

.addGroup(pnlLoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 160,
javax.swing.GroupLayout.PREFERRED_SIZE)

.addGroup(pnlLoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 200,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 200,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 122,
Short.MAX_VALUE)

.addGroup(pnlLoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addComponent(lbl, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jPass, javax.swing.GroupLayout.DEFAULT_SIZE, 200,
Short.MAX_VALUE)
.addComponent(txtuser, javax.swing.GroupLayout.DEFAULT_SIZE, 200,
Short.MAX_VALUE)
.addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 160,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(58, 58, 58))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
pnlLoginLayout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 130,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 128,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);

39
pnlLoginLayout.setVerticalGroup(
pnlLoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(pnlLoginLayout.createSequentialGroup()
.addComponent(lblLogin, javax.swing.GroupLayout.PREFERRED_SIZE, 80,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(39, 39, 39)

.addGroup(pnlLoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(txtuser, javax.swing.GroupLayout.PREFERRED_SIZE, 40,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 40,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(33, 33, 33)

.addGroup(pnlLoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jPass, javax.swing.GroupLayout.PREFERRED_SIZE, 40,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 40,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addComponent(lbl, javax.swing.GroupLayout.PREFERRED_SIZE, 32,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)

.addGroup(pnlLoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 50,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 50,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(54, 54, 54)

.addGroup(pnlLoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 27,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 27,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(32, 32, 32))
);
getContentPane().add(pnlLogin);
pnlLogin.setBounds(370, 180, 630, 470);

lblPhoto.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/full-hd-
background-wallpaper-download.jpg"))); // NOI18N
getContentPane().add(lblPhoto);
lblPhoto.setBounds(0, 0, 1380, 800);

pack();
}// </editor-fold>

private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
new Login().setVisible(true);
this.dispose();

40
}

private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
String usernm=txtuser.getText();
String pass=jPass.getText();
try{
String Query="select * from login where User_id='"+usernm+"'";
rs=st.executeQuery(Query);
rs.next();
sname=rs.getString(1);
spass=rs.getString(2);
con.close();
}
catch(Exception e)
{}

if((usernm.equalsIgnoreCase(sname))&& (pass.equalsIgnoreCase(spass)))
{
JOptionPane.showMessageDialog(this,"Welcome! you are a valid user");
new Home().setVisible(true);
this.dispose();
}
else
{
/* lbl.setText("Username & Password Not Matched");
lbl.setForeground(Color.red);*/
JOptionPane.showMessageDialog(this,"Oops! Id password not matched");
txtuser.setForeground(Color.magenta);
jPass.setForeground(Color.magenta);
}

private void txtuserActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
}

private void jPassActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
}

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
new Register().setVisible(true);
this.dispose();
}
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
/* Set the Nimbus look and feel */

41
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
* For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
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(Login.class.getName()).log(java.util.logging.Level.SEVERE,
null, ex);
} catch (InstantiationException ex) {

java.util.logging.Logger.getLogger(Login.class.getName()).log(java.util.logging.Level.SEVERE,
null, ex);
} catch (IllegalAccessException ex) {

java.util.logging.Logger.getLogger(Login.class.getName()).log(java.util.logging.Level.SEVERE,
null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {

java.util.logging.Logger.getLogger(Login.class.getName()).log(java.util.logging.Level.SEVERE,
null, ex);
}
//</editor-fold>
//</editor-fold>

/* Create and display the form */


java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new Login().setVisible(true);
}
});
}

// Variables declaration - do not modify


private javax.swing.JButton jButton1;
private javax.swing.JButton jButton3;
private javax.swing.JButton jButton4;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel6;
private javax.swing.JLabel jLabel8;
private javax.swing.JPasswordField jPass;
private javax.swing.JLabel lbl;
private javax.swing.JLabel lblLogin;
private javax.swing.JLabel lblPhoto;
private javax.swing.JPanel pnlLogin;
private javax.swing.JTextField txtuser;

42
REGISTER PAGE
import java.sql.*;
import javax.swing.JOptionPane;

public class Register extends javax.swing.JFrame {


String sname;
String spass;
Connection con;
Statement st;
ResultSet rs;

/**
* Creates new form SMS
*/
public Register() {
initComponents();

try{
//Class.forName("com.mysql.jdbc.Driver");
Class.forName("com.mysql.jdbc.Driver");
con=DriverManager.getConnection("jdbc:mysql://localhost:3306/SMSDB","root","");
st=con.createStatement();
}
catch(ClassNotFoundException | SQLException e) {
System.out.println(e.getMessage());
}
}

/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {

pnlRegister = new javax.swing.JPanel();


jButton2 = new javax.swing.JButton();
jButton1 = new javax.swing.JButton();
jLabel2 = new javax.swing.JLabel();
txtlast = new javax.swing.JTextField();
jLabel4 = new javax.swing.JLabel();
txtfirst = new javax.swing.JTextField();
jLabel5 = new javax.swing.JLabel();
txtusr = new javax.swing.JTextField();
jLabel7 = new javax.swing.JLabel();
jpass2 = new javax.swing.JPasswordField();
lblRegister = new javax.swing.JLabel();
jLabel1 = new javax.swing.JLabel();
jButton3 = new javax.swing.JButton();
lblPhoto = new javax.swing.JLabel();

43
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setMinimumSize(new java.awt.Dimension(1380, 800));
setPreferredSize(new java.awt.Dimension(1380, 800));
getContentPane().setLayout(null);

pnlRegister.setBackground(new java.awt.Color(180, 60,180,60));

jButton2.setBackground(new java.awt.Color(255, 0, 0));


jButton2.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
jButton2.setText("Cancel");
jButton2.setBorder(null);
jButton2.setBorderPainted(false);
jButton2.setOpaque(false);
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});

jButton1.setBackground(new java.awt.Color(51, 51, 255));


jButton1.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
jButton1.setForeground(new java.awt.Color(51, 51, 51));
jButton1.setText("Submit");
jButton1.setOpaque(false);
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});

jLabel2.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N


jLabel2.setText(" First Name :-");

txtlast.setText("Enter Last Name...");


txtlast.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
txtlastActionPerformed(evt);
}
});

jLabel4.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N


jLabel4.setText(" Last Name :-");

txtfirst.setText("Enter First Name...");

jLabel5.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N


jLabel5.setText(" User Name :-");

txtusr.setText("Enter User Name...");

jLabel7.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N


jLabel7.setText(" Password :-");

44
jpass2.setText("jPasswordField2");

lblRegister.setFont(new java.awt.Font("Jokerman", 3, 36)); // NOI18N


lblRegister.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
lblRegister.setText("Register");

jLabel1.setFont(new java.awt.Font("Traditional Arabic", 1, 20)); // NOI18N


jLabel1.setText("Already have an account !");

jButton3.setFont(new java.awt.Font("Traditional Arabic", 1, 24)); // NOI18N


jButton3.setForeground(new java.awt.Color(51, 255, 0));
jButton3.setText("Login");
jButton3.setOpaque(false);
jButton3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton3ActionPerformed(evt);
}
});

javax.swing.GroupLayout pnlRegisterLayout = new javax.swing.GroupLayout(pnlRegister);


pnlRegister.setLayout(pnlRegisterLayout);
pnlRegisterLayout.setHorizontalGroup(
pnlRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
pnlRegisterLayout.createSequentialGroup()
.addContainerGap()

.addGroup(pnlRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING
)
.addComponent(lblRegister, javax.swing.GroupLayout.Alignment.LEADING,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
.addGroup(javax.swing.GroupLayout.Alignment.LEADING,
pnlRegisterLayout.createSequentialGroup()
.addGap(46, 46, 46)

.addGroup(pnlRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(pnlRegisterLayout.createSequentialGroup()
.addGap(32, 32, 32)
.addComponent(jLabel1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton3)
.addGap(0, 0, Short.MAX_VALUE))
.addGroup(pnlRegisterLayout.createSequentialGroup()

.addGroup(pnlRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING
)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE,
140, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE,
140, javax.swing.GroupLayout.PREFERRED_SIZE)

45
.addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE,
140, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE,
140, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE,
100, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
127, Short.MAX_VALUE)

.addGroup(pnlRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(txtusr, javax.swing.GroupLayout.PREFERRED_SIZE, 180,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(txtlast, javax.swing.GroupLayout.PREFERRED_SIZE, 180,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(txtfirst, javax.swing.GroupLayout.PREFERRED_SIZE, 180,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jpass2, javax.swing.GroupLayout.PREFERRED_SIZE, 180,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE,
100, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(23, 23, 23)))))
.addGap(24, 24, 24))
);
pnlRegisterLayout.setVerticalGroup(
pnlRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(pnlRegisterLayout.createSequentialGroup()
.addContainerGap()
.addComponent(lblRegister, javax.swing.GroupLayout.PREFERRED_SIZE, 61,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(43, 43, 43)

.addGroup(pnlRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELIN
E)
.addComponent(txtfirst, javax.swing.GroupLayout.PREFERRED_SIZE, 40,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 40,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(38, 38, 38)

.addGroup(pnlRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELIN
E)
.addComponent(txtlast, javax.swing.GroupLayout.PREFERRED_SIZE, 40,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 40,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(38, 38, 38)

.addGroup(pnlRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELIN
E)
.addComponent(txtusr, javax.swing.GroupLayout.PREFERRED_SIZE, 40,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 40,
javax.swing.GroupLayout.PREFERRED_SIZE))

46
.addGap(40, 40, 40)

.addGroup(pnlRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELIN
E)
.addComponent(jpass2, javax.swing.GroupLayout.PREFERRED_SIZE, 40,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 40,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 48,
Short.MAX_VALUE)

.addGroup(pnlRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELIN
E)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 40,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 40,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(28, 28, 28)

.addGroup(pnlRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELIN
E)
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 34,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 34,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(30, 30, 30))
);

getContentPane().add(pnlRegister);
pnlRegister.setBounds(460, 130, 550, 580);

lblPhoto.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/full-hd-
background-wallpaper-download.jpg"))); // NOI18N
getContentPane().add(lblPhoto);
lblPhoto.setBounds(0, 0, 1380, 800);

pack();
}// </editor-fold>

private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
this.dispose();
new Register().setVisible(true);

private void txtlastActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
}

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:

47
try{
String user=txtusr.getText();
String pass=jpass2.getText();
String Query="insert into login values('"+user+"',"+pass+");";
st.executeUpdate(Query);
con.close();
new Login().setVisible(true);
this.dispose();
}
catch(Exception e)
{
System.out.println(e);
JOptionPane.showMessageDialog(this,"Enter Valid Username & password");
}
/*catch(MySQLIntegrityConstraintViolationException ex)
{
JOptionPane.showMessageDialog(this,"User Already Exist");
}*/

private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
new Login().setVisible(true);
this.dispose();
}

/**
* @param args the command line arguments
*/
public static void main(String args[]) {
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
* For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
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(Register.class.getName()).log(java.util.logging.Level.SEVERE,
null, ex);
} catch (InstantiationException ex) {

java.util.logging.Logger.getLogger(Register.class.getName()).log(java.util.logging.Level.SEVERE,
null, ex);
} catch (IllegalAccessException ex) {

48
java.util.logging.Logger.getLogger(Register.class.getName()).log(java.util.logging.Level.SEVERE,
null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {

java.util.logging.Logger.getLogger(Register.class.getName()).log(java.util.logging.Level.SEVERE,
null, ex);
}
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>

/* Create and display the form */


java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new Register().setVisible(true);
}
});
}

// Variables declaration - do not modify


private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JButton jButton3;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel4;
private javax.swing.JLabel jLabel5;
private javax.swing.JLabel jLabel7;
private javax.swing.JPasswordField jpass2;
private javax.swing.JLabel lblPhoto;
private javax.swing.JLabel lblRegister;
private javax.swing.JPanel pnlRegister;
private javax.swing.JTextField txtfirst;
private javax.swing.JTextField txtlast;
private javax.swing.JTextField txtusr;
// End of variables declaration
}

49
HOME PAGE
import java.sql.*;
import javax.swing.JOptionPane;
public class Home extends javax.swing.JFrame {
Connection con;
Statement st;
ResultSet rs;
public Home() {
initComponents();
try{
Class.forName("com.mysql.jdbc.Driver");
con=DriverManager.getConnection("jdbc:mysql://localhost:3306/SMSDB","root","");
st=con.createStatement();
}
catch(ClassNotFoundException | SQLException e) {
System.out.println(e.getMessage());
}
}
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {

jPanel1 = new javax.swing.JPanel();


jLabel13 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jLabel5 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jLabel6 = new javax.swing.JLabel();
jLabel7 = new javax.swing.JLabel();
jButton1 = new javax.swing.JButton();
jLabel8 = new javax.swing.JLabel();
jButton2 = new javax.swing.JButton();
jButton3 = new javax.swing.JButton();
jButton4 = new javax.swing.JButton();
jToggleButton1 = new javax.swing.JToggleButton();
jButton6 = new javax.swing.JButton();
jSeparator1 = new javax.swing.JSeparator();
jSeparator2 = new javax.swing.JSeparator();
jSeparator3 = new javax.swing.JSeparator();
jSeparator4 = new javax.swing.JSeparator();
jLabel12 = new javax.swing.JLabel();
jLabel1 = new javax.swing.JLabel();
jLabel9 = new javax.swing.JLabel();
jScrollPane1 = new javax.swing.JScrollPane();
jTextArea1 = new javax.swing.JTextArea();
jLabel10 = new javax.swing.JLabel();
jScrollPane2 = new javax.swing.JScrollPane();
jTextArea2 = new javax.swing.JTextArea();
jLabel11 = new javax.swing.JLabel();
jScrollPane3 = new javax.swing.JScrollPane();
jTextArea3 = new javax.swing.JTextArea();
jPanel2 = new javax.swing.JPanel();

50
jButton7 = new javax.swing.JButton();
jButton8 = new javax.swing.JButton();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setMinimumSize(new java.awt.Dimension(1380, 800));
setPreferredSize(new java.awt.Dimension(1380, 800));
getContentPane().setLayout(null);

jPanel1.setMinimumSize(new java.awt.Dimension(1380, 800));


jPanel1.setLayout(null);

jLabel13.setBackground(new java.awt.Color(180, 60,180,60));


jLabel13.setOpaque(true);
jPanel1.add(jLabel13);
jLabel13.setBounds(230, 0, 1140, 200);

jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/images.png"))); // NOI18N


jPanel1.add(jLabel3);
jLabel3.setBounds(0, 0, 230, 200);

jLabel4.setFont(new java.awt.Font("Sitka Text", 1, 48)); // NOI18N


jLabel4.setText("Oak Tree International School Meerut");
jLabel4.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
jPanel1.add(jLabel4);
jLabel4.setBounds(240, 120, 1200, 80);

jLabel5.setFont(new java.awt.Font("Tahoma", 3, 14)); // NOI18N


jLabel5.setText("Affliated by CBSE New Delhi");
jPanel1.add(jLabel5);
jLabel5.setBounds(240, 100, 220, 30);

jLabel2.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N


jLabel2.setText("
9576240953 | 83404801609 | 8279557178");
jPanel1.add(jLabel2);
jLabel2.setBounds(230, 0, 1200, 22);

jLabel6.setFont(new java.awt.Font("Tahoma", 3, 12)); // NOI18N


jLabel6.setText("Trust of 17 years");
jPanel1.add(jLabel6);
jLabel6.setBounds(400, 110, 130, 50);

jLabel7.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N


jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel7.setText("ABOUT US");
jPanel1.add(jLabel7);
jLabel7.setBounds(0, 190, 1430, 50);

jButton1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N


jButton1.setText("Home");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);

51
}
});
}
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
new Notice().setVisible(true);
this.dispose();
}
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
new Fee_Structure().setVisible(true);
this.dispose();
}
private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
new Login().setVisible(true);
this.dispose();
}
private void jToggleButton1ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
new HomeR().setVisible(true);
this.dispose();
}
private void jButton8ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
new Home().setVisible(true);
this.dispose();
}
public static void main(String args[]) {
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
* For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
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(Home.class.getName()).log(java.util.logging.Level.SEVERE,
null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(Home.class.getName()).log(java.util.logging.Level.SEVERE,
null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(Home.class.getName()).log(java.util.logging.Level.SEVERE,
null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {

52
java.util.logging.Logger.getLogger(Home.class.getName()).log(java.util.logging.Level.SEVERE,
null, ex);
}
//</editor-fold>
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new Home().setVisible(true);
}
});
}

// Variables declaration - do not modify


private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JButton jButton3;
private javax.swing.JButton jButton4;
private javax.swing.JButton jButton6;
private javax.swing.JButton jButton7;
private javax.swing.JButton jButton8;
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 jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel4;
private javax.swing.JLabel jLabel5;
private javax.swing.JLabel jLabel6;
private javax.swing.JLabel jLabel7;
private javax.swing.JLabel jLabel8;
private javax.swing.JLabel jLabel9;
private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
private javax.swing.JScrollPane jScrollPane1;
private javax.swing.JScrollPane jScrollPane2;
private javax.swing.JScrollPane jScrollPane3;
private javax.swing.JSeparator jSeparator1;
private javax.swing.JSeparator jSeparator2;
private javax.swing.JSeparator jSeparator3;
private javax.swing.JSeparator jSeparator4;
private javax.swing.JTextArea jTextArea1;
private javax.swing.JTextArea jTextArea2;
private javax.swing.JTextArea jTextArea3;
private javax.swing.JToggleButton jToggleButton1;
// End of variables declaration
}

NOTICE PAGE
import java.sql.*;

53
import javax.swing.JOptionPane;
public class Notice extends javax.swing.JFrame
{
String sname;
String spass;
Connection con;
Statement st;
ResultSet rs;
/**
* Creates new form notice1
*/
public Notice() {
initComponents();

try{
Class.forName("com.mysql.jdbc.Driver");
con=DriverManager.getConnection("jdbc:mysql://localhost:3306/SMSDB","root","");
st=con.createStatement();
//JOptionPane.showMessageDialog(this, "connected to database");
}
catch(ClassNotFoundException | SQLException e) {
System.out.println(e.getMessage());
}
}

/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {

jPanel1 = new javax.swing.JPanel();


jLabel11 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jSeparator2 = new javax.swing.JSeparator();
jLabel5 = new javax.swing.JLabel();
jLabel6 = new javax.swing.JLabel();
jLabel7 = new javax.swing.JLabel();
jButton2 = new javax.swing.JButton();
jButton3 = new javax.swing.JButton();
jButton4 = new javax.swing.JButton();
jButton5 = new javax.swing.JButton();
jButton6 = new javax.swing.JButton();
jLabel8 = new javax.swing.JLabel();
jSeparator1 = new javax.swing.JSeparator();
jSeparator3 = new javax.swing.JSeparator();
jButton1 = new javax.swing.JButton();
jLabel9 = new javax.swing.JLabel();
jSeparator4 = new javax.swing.JSeparator();

54
jLabel2 = new javax.swing.JLabel();
jLabel1 = new javax.swing.JLabel();
jScrollPane1 = new javax.swing.JScrollPane();
jTextArea1 = new javax.swing.JTextArea();
jLabel10 = new javax.swing.JLabel();
jFormattedTextField1 = new javax.swing.JFormattedTextField();
jButton7 = new javax.swing.JButton();
jButton8 = new javax.swing.JButton();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setMinimumSize(new java.awt.Dimension(1380, 800));
setPreferredSize(new java.awt.Dimension(1380, 800));
getContentPane().setLayout(null);

jPanel1.setMinimumSize(new java.awt.Dimension(1380, 800));


jPanel1.setLayout(null);

jLabel11.setBackground(new java.awt.Color(180, 60,180,60));


jLabel11.setOpaque(true);
jPanel1.add(jLabel11);
jLabel11.setBounds(230, 0, 1150, 200);

jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/images.png"))); // NOI18N


jPanel1.add(jLabel3);
jLabel3.setBounds(0, 0, 230, 200);

jLabel4.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N


jLabel4.setText("
9576240953 | 83404801609 | 8279557178");
jPanel1.add(jLabel4);
jLabel4.setBounds(230, 0, 1200, 20);

jSeparator2.setBackground(new java.awt.Color(0, 0, 51));


jPanel1.add(jSeparator2);
jSeparator2.setBounds(230, 20, 1200, 20);

jLabel5.setFont(new java.awt.Font("Sitka Text", 1, 48)); // NOI18N


jLabel5.setText("Oak Tree International School Meerut");
jLabel5.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
jPanel1.add(jLabel5);
jLabel5.setBounds(240, 120, 1200, 80);

jLabel6.setFont(new java.awt.Font("Tahoma", 3, 14)); // NOI18N


jLabel6.setText("Affliated by CBSE New Delhi");
jPanel1.add(jLabel6);
jLabel6.setBounds(240, 100, 220, 30);

jLabel7.setFont(new java.awt.Font("Tahoma", 3, 12)); // NOI18N


jLabel7.setText("Trust of 17 years");
jPanel1.add(jLabel7);
jLabel7.setBounds(400, 110, 130, 50);

jButton2.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N

55
jButton2.setText("Notice");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});
jPanel1.add(jButton2);
jButton2.setBounds(710, 40, 90, 30);

jButton3.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N


jButton3.setText("Fee Structure");
jButton3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton3ActionPerformed(evt);
}
});
jPanel1.add(jButton3);
jButton3.setBounds(830, 40, 140, 30);

jButton4.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N


jButton4.setText("Faculty");
jButton4.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton4ActionPerformed(evt);
}
});
jPanel1.add(jButton4);
jButton4.setBounds(1000, 40, 100, 30);

jButton5.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N


jButton5.setText("Report");
jButton5.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton5ActionPerformed(evt);
}
});
jPanel1.add(jButton5);
jButton5.setBounds(1130, 40, 100, 30);

jButton6.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N


jButton6.setText("LOGOUT");
jButton6.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton6ActionPerformed(evt);
}
});
jPanel1.add(jButton6);
jButton6.setBounds(1260, 40, 90, 30);

jLabel8.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N


jLabel8.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel8.setText("NOTICE");
jPanel1.add(jLabel8);

56
jLabel8.setBounds(0, 200, 1380, 30);

jSeparator1.setBackground(new java.awt.Color(51, 0, 0));


jSeparator1.setForeground(new java.awt.Color(51, 0, 0));
jSeparator1.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
jPanel1.add(jSeparator1);
jSeparator1.setBounds(230, 98, 1210, 2);

jSeparator3.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAIS
ED));
jPanel1.add(jSeparator3);
jSeparator3.setBounds(0, 230, 1430, 10);

jButton1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N


jButton1.setText("Home");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
jPanel1.add(jButton1);
jButton1.setBounds(570, 250, 100, 30);

jLabel9.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N


jLabel9.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel9.setText("Notice");
jPanel1.add(jLabel9);
jLabel9.setBounds(730, 250, 100, 30);

jSeparator4.setBackground(new java.awt.Color(0, 0, 0));


jPanel1.add(jSeparator4);
jSeparator4.setBounds(0, 280, 1430, 10);

jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/full-hd-background-
wallpaper-download.jpg"))); // NOI18N
jPanel1.add(jLabel2);
jLabel2.setBounds(0, 0, 1380, 200);

jLabel1.setBackground(new java.awt.Color(255, 153, 51));


jLabel1.setFont(new java.awt.Font("Segoe Print", 0, 24)); // NOI18N
jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel1.setText("NOTICE");
jLabel1.setOpaque(true);
jPanel1.add(jLabel1);
jLabel1.setBounds(220, 350, 800, 50);

jTextArea1.setColumns(20);
jTextArea1.setRows(5);
jTextArea1.setText(" \t\t Oak Tree\n...................................................\n \n 1.Write a notice to be
put up on your school \n noticeboard informing the students about closing\n of school for winter vacations
give necessary\n instruction Ask for details Follow Report by\n school..... 12/12/2019.");
jScrollPane1.setViewportView(jTextArea1);

57
jPanel1.add(jScrollPane1);
jScrollPane1.setBounds(220, 400, 800, 210);

jLabel10.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N


jLabel10.setText("Date");
jPanel1.add(jLabel10);
jLabel10.setBounds(220, 300, 80, 30);

jFormattedTextField1.setText("......./........./......");
jFormattedTextField1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jFormattedTextField1ActionPerformed(evt);
}
});
jPanel1.add(jFormattedTextField1);
jFormattedTextField1.setBounds(320, 300, 109, 30);

jButton7.setText("CANCEL");
jButton7.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton7ActionPerformed(evt);
}
});
jPanel1.add(jButton7);
jButton7.setBounds(360, 650, 140, 50);

jButton8.setText("UPDATE");
jButton8.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton8ActionPerformed(evt);
}
});
jPanel1.add(jButton8);
jButton8.setBounds(730, 650, 140, 50);

getContentPane().add(jPanel1);
jPanel1.setBounds(0, 0, 1380, 810);

pack();
}// </editor-fold>

private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
new Faculty().setVisible(true);
this.dispose();
}

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
new Home().setVisible(true);
this.dispose();
}

58
private void jFormattedTextField1ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
}

private void jButton8ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
String s=jTextArea1.getText();
try{
String Query= "update home set description = '"+s+"' where item = 'Notice'";
st.executeUpdate(Query);
//rs.next();
con.close();
JOptionPane.showMessageDialog(this,"Notice Submitted Successfully");
}
catch(Exception e){
System.out.println(e);
}
}

private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
new Fee_Structure().setVisible(true);
this.dispose();
}

private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
new Login().setVisible(true);
this.dispose();
}

private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
new Notice().setVisible(true);
this.dispose();
}

private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
new HomeR().setVisible(true);
this.dispose();
}

private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
new Notice().setVisible(true);
this.dispose();
}

/**
* @param args the command line arguments
*/

59
public static void main(String args[]) {
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
* For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
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(Notice.class.getName()).log(java.util.logging.Level.SEVERE,
null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(Notice.class.getName()).log(java.util.logging.Level.SEVERE,
null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(Notice.class.getName()).log(java.util.logging.Level.SEVERE,
null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(Notice.class.getName()).log(java.util.logging.Level.SEVERE,
null, ex);
}
//</editor-fold>
//</editor-fold>

/* Create and display the form */


java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new Notice().setVisible(true);
}
});
}

// Variables declaration - do not modify


private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JButton jButton3;
private javax.swing.JButton jButton4;
private javax.swing.JButton jButton5;
private javax.swing.JButton jButton6;
private javax.swing.JButton jButton7;
private javax.swing.JButton jButton8;
private javax.swing.JFormattedTextField jFormattedTextField1;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel10;
private javax.swing.JLabel jLabel11;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;

60
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.JScrollPane jScrollPane1;
private javax.swing.JSeparator jSeparator1;
private javax.swing.JSeparator jSeparator2;
private javax.swing.JSeparator jSeparator3;
private javax.swing.JSeparator jSeparator4;
private javax.swing.JTextArea jTextArea1;
// End of variables declaration
}

61
NOTICE PAGE (REPORT)
import java.sql.*;
public class NoticeR extends javax.swing.JFrame {

String sname;
String spass;
Connection con;
Statement st;
ResultSet rs;

public NoticeR() {
initComponents();
try{
Class.forName("com.mysql.jdbc.Driver");
con=DriverManager.getConnection("jdbc:mysql://localhost:3306/SMSDB","root","");
st=con.createStatement();
}
catch(ClassNotFoundException | SQLException e) {
System.out.println(e.getMessage());
}
try{
String Query1= "select * from home where item = 'Notice'";
rs= st.executeQuery(Query1);
rs.next();
String s1=rs.getString(2);
jTextArea1.setText(s1);
con.close();
}
catch(Exception e){
System.out.println(e);
}
}

@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {

jPanel1 = new javax.swing.JPanel();


jLabel11 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jSeparator2 = new javax.swing.JSeparator();
jLabel5 = new javax.swing.JLabel();
jLabel6 = new javax.swing.JLabel();
jLabel7 = new javax.swing.JLabel();
jButton2 = new javax.swing.JButton();
jButton3 = new javax.swing.JButton();
jButton4 = new javax.swing.JButton();
jButton5 = new javax.swing.JButton();
jButton6 = new javax.swing.JButton();
jLabel8 = new javax.swing.JLabel();
jSeparator1 = new javax.swing.JSeparator();
jSeparator3 = new javax.swing.JSeparator();

62
jButton1 = new javax.swing.JButton();
jLabel9 = new javax.swing.JLabel();
jSeparator4 = new javax.swing.JSeparator();
jLabel2 = new javax.swing.JLabel();
jLabel1 = new javax.swing.JLabel();
jScrollPane1 = new javax.swing.JScrollPane();
jTextArea1 = new javax.swing.JTextArea();
jLabel10 = new javax.swing.JLabel();
jFormattedTextField1 = new javax.swing.JFormattedTextField();
jSeparator5 = new javax.swing.JSeparator();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setMinimumSize(new java.awt.Dimension(1380, 800));
getContentPane().setLayout(null);

jPanel1.setLayout(null);

jLabel11.setBackground(new java.awt.Color(180, 60,180,60));


jLabel11.setOpaque(true);
jPanel1.add(jLabel11);
jLabel11.setBounds(230, 0, 1150, 200);

jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/images.png"))); // NOI18N


jPanel1.add(jLabel3);
jLabel3.setBounds(0, 0, 230, 200);

jLabel4.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N


jLabel4.setText("
9576240953 | 83404801609 | 8279557178");
jPanel1.add(jLabel4);
jLabel4.setBounds(230, 0, 1200, 20);

jSeparator2.setBackground(new java.awt.Color(0, 0, 51));


jPanel1.add(jSeparator2);
jSeparator2.setBounds(230, 20, 1200, 20);

jLabel5.setFont(new java.awt.Font("Sitka Text", 1, 48)); // NOI18N


jLabel5.setText("Oak Tree International School Meerut");
jLabel5.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
jPanel1.add(jLabel5);
jLabel5.setBounds(240, 120, 1200, 80);

jLabel6.setFont(new java.awt.Font("Tahoma", 3, 14)); // NOI18N


jLabel6.setText("Affliated by CBSE New Delhi");
jPanel1.add(jLabel6);
jLabel6.setBounds(230, 100, 220, 30);

jLabel7.setFont(new java.awt.Font("Tahoma", 3, 12)); // NOI18N


jLabel7.setText("Trust of 17 years");
jPanel1.add(jLabel7);
jLabel7.setBounds(390, 110, 130, 50);

jButton2.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N

63
jButton2.setText("Notice");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});
jPanel1.add(jButton2);
jButton2.setBounds(710, 40, 90, 30);

jButton3.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N


jButton3.setText("Fee Structure");
jButton3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton3ActionPerformed(evt);
}
});
jPanel1.add(jButton3);
jButton3.setBounds(830, 40, 140, 30);

jButton4.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N


jButton4.setText("Faculty");
jButton4.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton4ActionPerformed(evt);
}
});
jPanel1.add(jButton4);
jButton4.setBounds(1000, 40, 100, 30);

jButton5.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N


jButton5.setText("Admin");
jButton5.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton5ActionPerformed(evt);
}
});
jPanel1.add(jButton5);
jButton5.setBounds(1130, 40, 100, 30);

jButton6.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N


jButton6.setText("LOGOUT");
jButton6.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton6ActionPerformed(evt);
}
});
jPanel1.add(jButton6);
jButton6.setBounds(1260, 40, 90, 30);

jLabel8.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N


jLabel8.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel8.setText("NOTICE");
jPanel1.add(jLabel8);

64
jLabel8.setBounds(0, 200, 1380, 30);

jSeparator1.setBackground(new java.awt.Color(51, 0, 0));


jSeparator1.setForeground(new java.awt.Color(51, 0, 0));
jSeparator1.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
jPanel1.add(jSeparator1);
jSeparator1.setBounds(230, 100, 1210, 20);

jSeparator3.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAIS
ED));
jPanel1.add(jSeparator3);
jSeparator3.setBounds(0, 200, 1430, 0);

jButton1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N


jButton1.setText("Home");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
jPanel1.add(jButton1);
jButton1.setBounds(590, 260, 90, 30);

jLabel9.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N


jLabel9.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel9.setText("Notice");
jPanel1.add(jLabel9);
jLabel9.setBounds(730, 260, 80, 30);

jSeparator4.setBackground(new java.awt.Color(0, 0, 0));


jPanel1.add(jSeparator4);
jSeparator4.setBounds(0, 290, 1430, 20);

jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/full-hd-background-
wallpaper-download.jpg"))); // NOI18N
jPanel1.add(jLabel2);
jLabel2.setBounds(0, 0, 1380, 200);

jLabel1.setBackground(new java.awt.Color(255, 153, 51));


jLabel1.setFont(new java.awt.Font("Segoe Print", 0, 24)); // NOI18N
jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel1.setText("NOTICE");
jLabel1.setOpaque(true);
jPanel1.add(jLabel1);
jLabel1.setBounds(170, 380, 990, 50);

jTextArea1.setEditable(false);
jTextArea1.setColumns(20);
jTextArea1.setFont(new java.awt.Font("Monospaced", 0, 18)); // NOI18N
jTextArea1.setLineWrap(true);
jTextArea1.setRows(5);
jScrollPane1.setViewportView(jTextArea1);

65
jPanel1.add(jScrollPane1);
jScrollPane1.setBounds(170, 430, 990, 250);

jLabel10.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N


jLabel10.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel10.setText("Date");
jPanel1.add(jLabel10);
jLabel10.setBounds(160, 320, 80, 30);

jFormattedTextField1.setText("......./........./......");
jFormattedTextField1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jFormattedTextField1ActionPerformed(evt);
}
});
jPanel1.add(jFormattedTextField1);
jFormattedTextField1.setBounds(280, 320, 109, 30);

jSeparator5.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAIS
ED));
jPanel1.add(jSeparator5);
jSeparator5.setBounds(0, 230, 1380, 10);

getContentPane().add(jPanel1);
jPanel1.setBounds(0, 0, 1380, 800);

pack();
}// </editor-fold>

private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
new FacultyR().setVisible(true);
this.dispose();
}

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
new HomeR().setVisible(true);
this.dispose();
}

private void jFormattedTextField1ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
}

private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
new NoticeR().setVisible(true);
this.dispose();
}

66
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
new Fee_structureR().setVisible(true);
this.dispose();
}

private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
new Login().setVisible(true);
this.dispose();
}

private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
new Home().setVisible(true);
this.dispose();
}

/**
* @param args the command line arguments
*/
public static void main(String args[]) {
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
* For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
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(NoticeR.class.getName()).log(java.util.logging.Level.SEVERE,
null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(NoticeR.class.getName()).log(java.util.logging.Level.SEVERE,
null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(NoticeR.class.getName()).log(java.util.logging.Level.SEVERE,
null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(NoticeR.class.getName()).log(java.util.logging.Level.SEVERE,
null, ex);
}
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>

67
/* Create and display the form */
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new NoticeR().setVisible(true);
}
});
}

// Variables declaration - do not modify


private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JButton jButton3;
private javax.swing.JButton jButton4;
private javax.swing.JButton jButton5;
private javax.swing.JButton jButton6;
private javax.swing.JFormattedTextField jFormattedTextField1;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel10;
private javax.swing.JLabel jLabel11;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel4;
private javax.swing.JLabel jLabel5;
private javax.swing.JLabel jLabel6;
private javax.swing.JLabel jLabel7;
private javax.swing.JLabel jLabel8;
private javax.swing.JLabel jLabel9;
private javax.swing.JPanel jPanel1;
private javax.swing.JScrollPane jScrollPane1;
private javax.swing.JSeparator jSeparator1;
private javax.swing.JSeparator jSeparator2;
private javax.swing.JSeparator jSeparator3;
private javax.swing.JSeparator jSeparator4;
private javax.swing.JSeparator jSeparator5;
private javax.swing.JTextArea jTextArea1;
// End of variables declaration
}

68
FEE STRUCTURE PAGE(REPORT)
import java.sql.*;
public class Fee_structureR extends javax.swing.JFrame {
Connection con;
Statement st;
ResultSet rs;
public Fee_structureR() {
initComponents();
try{
Class.forName("com.mysql.jdbc.Driver");
con=DriverManager.getConnection("jdbc:mysql://localhost:3306/SMSDB","root","");
st=con.createStatement();
}
catch(ClassNotFoundException | SQLException e) {
System.out.println(e.getMessage());
}
try
{
String Query1="select * from fee where class='Pre-UKG'";
String Query2="select * from fee where class='std - I-III'";
String Query3="select * from fee where class='std - IV-VII'";
String Query4="select * from fee where class='std - VIII-X'";
rs=st.executeQuery(Query1);
rs.next();
jTable1.setValueAt(rs.getString(2),0,1);
jTable1.setValueAt(rs.getString(3),1,1);
jTable1.setValueAt(rs.getString(4),2,1);
jTable1.setValueAt(rs.getString(5),3,1);
jTable1.setValueAt(rs.getString(6),4,1);

rs=st.executeQuery(Query2);
rs.next();
jTable1.setValueAt(rs.getString(2),0,2);
jTable1.setValueAt(rs.getString(3),1,2);
jTable1.setValueAt(rs.getString(4),2,2);
jTable1.setValueAt(rs.getString(5),3,2);
jTable1.setValueAt(rs.getString(6),4,2);

rs=st.executeQuery(Query3);
rs.next();
jTable1.setValueAt(rs.getString(2),0,3);
jTable1.setValueAt(rs.getString(3),1,3);
jTable1.setValueAt(rs.getString(4),2,3);
jTable1.setValueAt(rs.getString(5),3,3);
jTable1.setValueAt(rs.getString(6),4,3);

rs=st.executeQuery(Query4);
rs.next();
jTable1.setValueAt(rs.getString(2),0,4);
jTable1.setValueAt(rs.getString(3),1,4);
jTable1.setValueAt(rs.getString(4),2,4);
jTable1.setValueAt(rs.getString(5),3,4);
jTable1.setValueAt(rs.getString(6),4,4);

69
}
catch(Exception e)
{
System.out.println(e);
}

@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {

jPanel1 = new javax.swing.JPanel();


jLabel13 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jLabel5 = new javax.swing.JLabel();
jLabel7 = new javax.swing.JLabel();
jLabel6 = new javax.swing.JLabel();
jSeparator2 = new javax.swing.JSeparator();
jSeparator1 = new javax.swing.JSeparator();
jButton2 = new javax.swing.JButton();
jLabel9 = new javax.swing.JLabel();
jButton3 = new javax.swing.JButton();
jButton4 = new javax.swing.JButton();
jButton5 = new javax.swing.JButton();
jButton6 = new javax.swing.JButton();
jSeparator3 = new javax.swing.JSeparator();
jButton1 = new javax.swing.JButton();
jSeparator4 = new javax.swing.JSeparator();
jLabel10 = new javax.swing.JLabel();
jLabel1 = new javax.swing.JLabel();
jPanel2 = new javax.swing.JPanel();
jLabel21 = new javax.swing.JLabel();
jSeparator5 = new javax.swing.JSeparator();
jScrollPane1 = new javax.swing.JScrollPane();
jTable1 = new javax.swing.JTable();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setMinimumSize(new java.awt.Dimension(1380, 800));
setPreferredSize(new java.awt.Dimension(1380, 800));
getContentPane().setLayout(null);

jPanel1.setMinimumSize(new java.awt.Dimension(1380, 800));


jPanel1.setLayout(null);

jLabel13.setBackground(new java.awt.Color(180, 60,180,60));


jLabel13.setOpaque(true);
jPanel1.add(jLabel13);
jLabel13.setBounds(230, 0, 1150, 200);

jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/images.png"))); // NOI18N


jPanel1.add(jLabel3);

70
jLabel3.setBounds(0, 0, 230, 200);

jLabel4.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N


jLabel4.setText("
9576240953 | 83404801609 | 8279557178");
jPanel1.add(jLabel4);
jLabel4.setBounds(230, 0, 1200, 20);

jLabel5.setFont(new java.awt.Font("Sitka Text", 1, 48)); // NOI18N


jLabel5.setText("Oak Tree International School Meerut");
jLabel5.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
jPanel1.add(jLabel5);
jLabel5.setBounds(240, 120, 1200, 80);

jLabel7.setFont(new java.awt.Font("Tahoma", 3, 12)); // NOI18N


jLabel7.setText("Trust of 17 years");
jPanel1.add(jLabel7);
jLabel7.setBounds(400, 120, 130, 50);

jLabel6.setFont(new java.awt.Font("Tahoma", 3, 14)); // NOI18N


jLabel6.setText("Affliated by CBSE New Delhi");
jPanel1.add(jLabel6);
jLabel6.setBounds(230, 110, 220, 30);

jSeparator2.setBackground(new java.awt.Color(0, 0, 51));


jPanel1.add(jSeparator2);
jSeparator2.setBounds(230, 20, 1200, 20);

jSeparator1.setBackground(new java.awt.Color(51, 0, 0));


jSeparator1.setForeground(new java.awt.Color(51, 0, 0));
jSeparator1.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
jPanel1.add(jSeparator1);
jSeparator1.setBounds(230, 100, 1210, 20);

jButton2.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N


jButton2.setText("Notice");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});
jPanel1.add(jButton2);
jButton2.setBounds(710, 40, 90, 30);

jLabel9.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N


jLabel9.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel9.setText("FEE STRUCTURE");
jPanel1.add(jLabel9);
jLabel9.setBounds(0, 200, 1380, 30);

jButton3.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N


jButton3.setText("Fee Structure");
jButton3.addActionListener(new java.awt.event.ActionListener() {

71
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton3ActionPerformed(evt);
}
});
jPanel1.add(jButton3);
jButton3.setBounds(830, 40, 140, 30);

jButton4.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N


jButton4.setText("Faculty");
jButton4.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton4ActionPerformed(evt);
}
});
jPanel1.add(jButton4);
jButton4.setBounds(1000, 40, 100, 30);

jButton5.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N


jButton5.setText("Admin");
jButton5.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton5ActionPerformed(evt);
}
});
jPanel1.add(jButton5);
jButton5.setBounds(1130, 40, 100, 30);

jButton6.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N


jButton6.setText("LOGOUT");
jButton6.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton6ActionPerformed(evt);
}
});
jPanel1.add(jButton6);
jButton6.setBounds(1260, 40, 90, 30);

jSeparator3.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAIS
ED));
jPanel1.add(jSeparator3);
jSeparator3.setBounds(0, 230, 1430, 10);

jButton1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N


jButton1.setText("Home");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
jPanel1.add(jButton1);
jButton1.setBounds(580, 250, 73, 30);

72
jSeparator4.setBackground(new java.awt.Color(0, 0, 0));
jPanel1.add(jSeparator4);
jSeparator4.setBounds(0, 280, 1430, 10);

jLabel10.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N


jLabel10.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel10.setText("Fee Structure");
jPanel1.add(jLabel10);
jLabel10.setBounds(710, 250, 120, 30);

jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/full-hd-background-
wallpaper-download.jpg"))); // NOI18N
jPanel1.add(jLabel1);
jLabel1.setBounds(0, 0, 1380, 200);

jPanel2.setLayout(null);
jPanel1.add(jPanel2);
jPanel2.setBounds(0, -20, 1380, 220);

jLabel21.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N


jLabel21.setForeground(new java.awt.Color(0, 204, 204));
jLabel21.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel21.setText("Fee Structure ");
jPanel1.add(jLabel21);
jLabel21.setBounds(150, 280, 210, 50);

jSeparator5.setForeground(new java.awt.Color(102, 0, 0));


jSeparator5.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
jPanel1.add(jSeparator5);
jSeparator5.setBounds(200, 320, 140, 20);

jScrollPane1.setBorder(null);
jScrollPane1.setViewportBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0,
0, 0)));
jScrollPane1.setName(""); // NOI18N

jTable1.setAutoCreateRowSorter(true);
jTable1.setBackground(new java.awt.Color(51, 255, 51));
jTable1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
jTable1.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{"EXAM FEE", "", null, null, null},
{"ANNUAL FEE", null, null, null, null},
{"SPORTS FEE", null, null, null, null},
{"TUTION FEE", null, null, null, null},
{"TOTAL FEE", null, null, null, null}
},
new String [] {
"CLASS", "PRE-NURSERY", " I - III", " IV-VII", " VII-X"
}
){
boolean[] canEdit = new boolean [] {
false, false, false, false, false

73
};

public boolean isCellEditable(int rowIndex, int columnIndex) {


return canEdit [columnIndex];
}
});
jTable1.setToolTipText("");
jTable1.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
jTable1.setFocusable(false);
jTable1.setIntercellSpacing(new java.awt.Dimension(5, 10));
jTable1.setName(""); // NOI18N
jTable1.setRowHeight(40);
jScrollPane1.setViewportView(jTable1);

jTable1.getColumnModel().getSelectionModel().setSelectionMode(javax.swing.ListSelectionModel.MULTI
PLE_INTERVAL_SELECTION);
if (jTable1.getColumnModel().getColumnCount() > 0) {
jTable1.getColumnModel().getColumn(0).setMinWidth(20);
jTable1.getColumnModel().getColumn(0).setHeaderValue("CLASS");
jTable1.getColumnModel().getColumn(1).setHeaderValue("PRE-NURSERY");
jTable1.getColumnModel().getColumn(2).setHeaderValue(" I - III");
jTable1.getColumnModel().getColumn(3).setHeaderValue(" IV-VII");
jTable1.getColumnModel().getColumn(4).setHeaderValue(" VII-X");
}

jPanel1.add(jScrollPane1);
jScrollPane1.setBounds(150, 380, 1090, 220);

getContentPane().add(jPanel1);
jPanel1.setBounds(0, 0, 1380, 810);

pack();
}// </editor-fold>

private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {


new FacultyR().setVisible(true);
this.dispose();
}

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {


new HomeR().setVisible(true);
this.dispose();
}

private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {


new NoticeR().setVisible(true);
this.dispose();
}

private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {


new Fee_structureR().setVisible(true);
this.dispose();
}

74
private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
new Login().setVisible(true);
this.dispose();
}

private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
new Home().setVisible(true);
this.dispose();
}

/**
* @param args the command line arguments
*/
public static void main(String args[]) {
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
* For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
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(Fee_structureR.class.getName()).log(java.util.logging.Level.SEVERE,
null, ex);
} catch (InstantiationException ex) {

java.util.logging.Logger.getLogger(Fee_structureR.class.getName()).log(java.util.logging.Level.SEVERE,
null, ex);
} catch (IllegalAccessException ex) {

java.util.logging.Logger.getLogger(Fee_structureR.class.getName()).log(java.util.logging.Level.SEVERE,
null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {

java.util.logging.Logger.getLogger(Fee_structureR.class.getName()).log(java.util.logging.Level.SEVERE,
null, ex);
}
//</editor-fold>
//</editor-fold>

/* Create and display the form */


java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {

75
new Fee_structureR().setVisible(true);
}
});
}
// Variables declaration - do not modify
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JButton jButton3;
private javax.swing.JButton jButton4;
private javax.swing.JButton jButton5;
private javax.swing.JButton jButton6;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel10;
private javax.swing.JLabel jLabel13;
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 jLabel9;
private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
private javax.swing.JScrollPane jScrollPane1;
private javax.swing.JSeparator jSeparator1;
private javax.swing.JSeparator jSeparator2;
private javax.swing.JSeparator jSeparator3;
private javax.swing.JSeparator jSeparator4;
private javax.swing.JSeparator jSeparator5;
private javax.swing.JTable jTable1;
// End of variables declaration
}
FACULTY PAGE(REPORT)
import java.sql.*;
import javax.swing.table.DefaultTableModel;
public class FacultyR extends javax.swing.JFrame {

DefaultTableModel dm;
Connection con;
Statement st;
ResultSet rs;
public FacultyR() {
initComponents();
try{
Class.forName("com.mysql.jdbc.Driver");
con=DriverManager.getConnection("jdbc:mysql://localhost:3306/SMSDB","root","");
st=con.createStatement();
}
catch(Exception e){
System.out.println(e);
}
try{
String Query="select * from faculty";

76
TESTING

77
SOFTWARE TESTING
Software testing is the process of evaluating a software item to detect differences
between given input and expected output. Also to assess the feature of the
software item. Testing assesses the quality of the product.

Software testing is a process that should be done during the development process.
In other words software testing is a verification and validation process.

BASICS OF SOFTWARE TESTING

There are two basics of software testing: Black box testing and White box
testing.

BLACK BOX TESTING

Black box testing is a testing technique that ignores the internal mechanism of
the system and focuses on the output generated against any input and execution
of the system. It is also called functional testing.

WHITE BOX TESTING

White box testing is a testing technique that takes into account the internal
mechanism of a system. It is also called structural testing and glass box testing.
Black box testing is often used for validation and White box testing is often used
for verification.
TYPES OF TESTING
There are many types of testing like:-
Unit testing
Integration testing
Functional testing
System testing
Stress testing
Performance testing
Usability testing

78
Acceptance testing
Regression testing
Beta testing

Unit testing

Unit testing is the testing of an individual unit or group of related units. It


falls under the class of White box testing. It is often done by the
programmer to test that the unit he/she has implemented is producing
expected output against given input.

Integration testing

Integration testing is the testing in which a group of components are


combined to produce output. Also, the integration between hardware and
software is tested in integration testing if hardware and software
components have any relation. It may fall under both White box testing and
Black box testing.

Functional testing

Functional testing is the testing to ensure that the specified functionality


required in the system requirements works. It falls under the class of
Black box testing.
System testing

System testing is the testing to ensure that by putting the software in


different environments (e.g., Operating Systems) it still works.

Regression testing

Regression testing is the testing after the modification of the system, component
or a group of related units to ensure that the modification is working correctly
and is not damaging or imposing other modules to produce unexpected results. It
falls under the class of Black box testing.
Beta testing

79
Beta testing is the testing done by the end users, a team outside development, or
publicly releasing full pre-version of the product which is known as beta version.
The aim of the beta testing is to cover unexpected errors. It falls under the class
of Black box testing.

SECURITY FOR SOFTWARE

A user with authorized username and password can only access the
software.this is the extent to which the medical store management system is
safe from unauthorized users and attacks.

user authentication is crucial because it’s the process that keeps unauthorized
users from gaining access to sensitive
information. Authentication ensures that User A only has access to the
information they need and can’t see the sensitive information of User B.
When user authentication isn’t secure, cybercriminals can trick the system and gain
access, taking whatever information they want.

User authentication ensures that only authorized users are gaining access to
sensitive information. Without a secure authentication process, organization
could be at risk.

80
LIMITATION
OF
PROJECT

81
LIMITATIONS OF PROJECT

This section describes those services that are not provided


by the system .

If the system crash this application will be corrupted.


We use access as back-end; its storage capacity is
limited.

This software is not online.

82
FUTURE SCOPE

83
FUTURE SCOPE

We have left all the options open so that if there is any other future requirement
in the system by the user for the enhancement of the system then it is possible to
implement them. In the last, we would like to thanks all the persons involved in
the development of the system directly or indirectly. We are also thankful to the
department for so much taken by them in helping to develop the system. We
hope that the project will serve its purpose for which it is develop thereby
underlining success of project.

84
BIBLOGRAPHY

85
BIBLIOGRAPHY

The content of this project is taken from following sources:-


Google.com
Slideshare.net

JavaTpoint.com
Wikipedia.com

86

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy